Redshift查询挂在mule cloudhub上

时间:2015-04-24 16:06:22

标签: sql mule amazon-redshift 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)
********************************************************************************

1 个答案:

答案 0 :(得分:0)

正如盖伊在评论中提到的那样,问题似乎是使用固定MTU的Redshift。

有关详细信息,请参见MuleSoft知识库文章Mule application hangs on database select or insert when using Postgres on AWS Redshift