CLOSED MP channel null timed out - Errors seen in router logs

2015-04-06 16:39:48,871 org: env: nioEventLoopGroup-3-2 ERROR Proxy-session - RouterProxySession$ClientContext.onTimeout() : Message Id: ptectlvapirtr01.iteclientsys.local_BTJB/1Ew_RouterProxy-3-2783_29 Session state: CLOSED MP channel null timed out

2015-04-06 16:39:19,408 org: env: nioEventLoopGroup-3-2 ERROR Proxy-session - RouterProxySession$ClientContext.onTimeout() : Message Id: ptectlvapirtr02.iteclientsys.local_BTJCBXHc_RouterProxy-3-2719_11 Session state: CLOSED MP channel null timed out

Errors on MP logs:

2015-04-06 16:38:42,242 org: env: NIOThread@2 ERROR HTTP.SERVER - HTTPServer$Context$2.onException() : Message id:ptectlvapirtr01.iteclientsys.local_BTJB/1Ew_RouterProxy-3-2710_16 ChunkedOutputChannel(ClientOutputChannel(ClientChannel[A:<IP>:8998 Remote host:10.80.100.39:48933]@562)).onExceptionWrite exception:java.io.IOException: Connection reset by peer

Solved Solved
0 2 701
1 ACCEPTED SOLUTION

The logs can be interpreted as below:

MP logs indicating a read timeout from the backend.

2015-04-06 13:02:53,421 org:Retail env:retail_pte NIOThread@0 ERROR HTTP.CLIENT - HTTPClient$Context$3.onTimeout() : Message id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1, ClientChannel[C:<Backend_IP>:8080 Remote host:<MP_IP>:46684]@64.onTimeoutRead 2015-04-06 13:02:53,422 org:Retail env:retail_pte NIOThread@0 ERROR ADAPTORS.HTTP.FLOW - AbstractResponseListener.onException() : AbstractResponseListener.onError(HTTPResponse@3cf7fd35, Gateway Timeout)

MP trying to write to the router but the connection is closed by the router due to the timeout.

2015-04-06 13:02:53,422 org:Retail env:retail_pte NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception java.io.IOException: Connection reset by peer occurred while writing to channel ClientOutputChannel(ClientChannel[A:<MP_IP>:8998 Remote host:<Router_IP>:42875]@192) 2015-04-06 13:02:53,423 org:Retail env:retail_pte NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception trace: java.io.IOException: Connection reset by peer

Router log msg indicating the connection closed by the router to the MP due to no response and then sending the error response back to the LB.

2015-04-06 13:02:53,393 org: env: nioEventLoopGroup-2-3 ERROR Proxy-session - RouterProxySession$ServerContext.onTimeout() : Message Id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1 Session state: TARGET_ERROR Server channel [id: 0xc3d290e9, /<LB_IP>:15285 => /<Router_IP>:9002] timed out 2015-04-06 13:02:53,393 org: env: nioEventLoopGroup-3-1 ERROR Proxy-session - RouterProxySession$ClientContext.onTimeout() : Message Id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1 Session state: CLOSED MP channel null timed out

View solution in original post

2 REPLIES 2

The logs can be interpreted as below:

MP logs indicating a read timeout from the backend.

2015-04-06 13:02:53,421 org:Retail env:retail_pte NIOThread@0 ERROR HTTP.CLIENT - HTTPClient$Context$3.onTimeout() : Message id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1, ClientChannel[C:<Backend_IP>:8080 Remote host:<MP_IP>:46684]@64.onTimeoutRead 2015-04-06 13:02:53,422 org:Retail env:retail_pte NIOThread@0 ERROR ADAPTORS.HTTP.FLOW - AbstractResponseListener.onException() : AbstractResponseListener.onError(HTTPResponse@3cf7fd35, Gateway Timeout)

MP trying to write to the router but the connection is closed by the router due to the timeout.

2015-04-06 13:02:53,422 org:Retail env:retail_pte NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception java.io.IOException: Connection reset by peer occurred while writing to channel ClientOutputChannel(ClientChannel[A:<MP_IP>:8998 Remote host:<Router_IP>:42875]@192) 2015-04-06 13:02:53,423 org:Retail env:retail_pte NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception trace: java.io.IOException: Connection reset by peer

Router log msg indicating the connection closed by the router to the MP due to no response and then sending the error response back to the LB.

2015-04-06 13:02:53,393 org: env: nioEventLoopGroup-2-3 ERROR Proxy-session - RouterProxySession$ServerContext.onTimeout() : Message Id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1 Session state: TARGET_ERROR Server channel [id: 0xc3d290e9, /<LB_IP>:15285 => /<Router_IP>:9002] timed out 2015-04-06 13:02:53,393 org: env: nioEventLoopGroup-3-1 ERROR Proxy-session - RouterProxySession$ClientContext.onTimeout() : Message Id: ptectlvapirtr01.iteclientsys.local_BTHGYojI_RouterProxy-3-101811_1 Session state: CLOSED MP channel null timed out

@Akash Prabhashankar , You can also accept your own answer on your own question. Please feel free to accept your own answer if it solves the query posted. It will help others easily identify best answer. I have accepted for now , you can do same next time.