Redshift 查询挂在 mule cloudhub 上
Redshift query hangs on mule cloudhub
我遇到了简单的 redshift 查询挂起的问题。我正在使用 mule 并将我的代码部署到 cloudhub。相信它与结果集大小有关。当结果集大小很小时,可能少于 50 行,它工作正常。但是,除此之外的任何内容似乎都挂起,我偶尔(在请求大约 2 小时后)会在日志中看到此错误。我将连接 url 用作:
jdbc:postgresql://xyz?tcpKeepAlive=true&useCursors=true&user=abc&password=123
顺便说一句,在我的本地 mule 运行时一切正常。
********************************************************************************
Message : [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap
Code : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (com.amazon.support.exceptions.GeneralException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
2. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
3. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap (org.mule.api.MessagingException)
org.mule.module.db.internal.processor.AbstractDbMessageProcessor:93 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.amazon.support.exceptions.GeneralException: [Amazon](500150) Error setting/closing connection: Connection reset by peer.
at com.amazon.jdbc.communications.channels.MessagesSocketChannel.readMessages(Unknown Source)
at com.amazon.jdbc.communications.channels.AbstractMessagesSocketChannel.read(Unknown Source)
+ 2 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************
正如 Guy 在评论中提到的,问题似乎是使用固定 MTU 的 Redshift。
有关详细信息,请参阅 MuleSoft 知识库文章 Mule application hangs on database select or insert when using Postgres on AWS Redshift。
我遇到了简单的 redshift 查询挂起的问题。我正在使用 mule 并将我的代码部署到 cloudhub。相信它与结果集大小有关。当结果集大小很小时,可能少于 50 行,它工作正常。但是,除此之外的任何内容似乎都挂起,我偶尔(在请求大约 2 小时后)会在日志中看到此错误。我将连接 url 用作:
jdbc:postgresql://xyz?tcpKeepAlive=true&useCursors=true&user=abc&password=123
顺便说一句,在我的本地 mule 运行时一切正常。
********************************************************************************
Message : [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap
Code : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (com.amazon.support.exceptions.GeneralException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
2. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
3. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap (org.mule.api.MessagingException)
org.mule.module.db.internal.processor.AbstractDbMessageProcessor:93 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.amazon.support.exceptions.GeneralException: [Amazon](500150) Error setting/closing connection: Connection reset by peer.
at com.amazon.jdbc.communications.channels.MessagesSocketChannel.readMessages(Unknown Source)
at com.amazon.jdbc.communications.channels.AbstractMessagesSocketChannel.read(Unknown Source)
+ 2 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************
正如 Guy 在评论中提到的,问题似乎是使用固定 MTU 的 Redshift。
有关详细信息,请参阅 MuleSoft 知识库文章 Mule application hangs on database select or insert when using Postgres on AWS Redshift。