NIO异常新动向

来源:互联网 发布:linux clone 编辑:程序博客网 时间:2024/04/28 17:10

该日志是最新的动向,就是创建了一个新连接,发送一个请求后,立马收到-1,服务器端主动关闭连接。(该日志信息有些内容是我自己加入的。)

 

2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Iteratorsun.nio.ch.SelectionKeyImpl@1847f9b2
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Key is readable---------------192.168.2.20:48087
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:   -------start read loop----------
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: get dataLengthBuffer=4
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set rpcHeaderRead=false
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set rpcHeaderRead!-------
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set rpcHeaderRead!------- rpcHeaderBuffer=2
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:   -------start read loop----------
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: get dataLengthBuffer=0
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: 1count=0
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: IPC Server listener on 8020 readSelector=1
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Iterator
sun.nio.ch.SelectionKeyImpl@1847f9b2
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Key is readable---------------192.168.2.20:48087
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:   -------start read loop----------
2012-07-09 15:00:38,723 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: get dataLengthBuffer=4
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set rpcHeaderRead=true
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: create data bytes=57
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set channelRead!------- =57
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set channelRead  data!------- =0
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: start process request informat bytes size=57
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Successfully authorized org.apache.hadoop.hdfs.protocol.ClientProtocol-hadoop
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:   -------start read loop----------
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: get dataLengthBuffer=4
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set rpcHeaderRead=true
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: create data bytes=211
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set channelRead!------- =211
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: set channelRead  data!------- =0
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: start process request informat bytes size=211
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:  got #6362
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: return count=211
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: IPC Server listener on 8020 readSelector=1
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Iterator
sun.nio.ch.SelectionKeyImpl@1847f9b2
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: Key is readable---------------192.168.2.20:48087
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server:   -------start read loop----------
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: get dataLengthBuffer=-1
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: 1count=-1
2012-07-09 15:00:38,724 [pool-1-thread-23] DEBUG org.apache.hadoop.ipc.Server: IPC Server listener on 8020: disconnecting client 192.168.2.20:48087. Number of active conne       ctions: 44 wait for 2 second