Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The log (when insert fails):
- 22:42:12.690 [main] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 1] start execution
- 22:42:12.706 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
- 22:42:12.733 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Re-using cached 'basic' auth scheme for http://localhost:9200
- 22:42:12.735 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - No credentials for preemptive authentication
- 22:42:12.735 [main] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 1] Request connection for {}->http://localhost:9200
- 22:42:12.737 [main] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9200][total kept alive: 0; route allocated: 0 of 5; total allocated: 0 of 10]
- 22:42:12.786 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection leased: [id: http-outgoing-0][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 1 of 5; total allocated: 1 of 10]
- 22:42:12.788 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 1] Connection allocated: CPoolProxy{http-outgoing-0 [ACTIVE]}
- 22:42:12.789 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][r:]: Set attribute http.nio.exchange-handler
- 22:42:12.789 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:]: Event set [w]
- 22:42:12.789 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:]: Set timeout 0
- 22:42:12.789 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE]: Connected
- 22:42:12.791 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:]: Set attribute http.nio.http-exchange-state
- 22:42:12.794 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - Start connection routing
- 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Connection route established
- 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 1] Attempt 1 to execute request
- 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Target auth state: UNCHALLENGED
- 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Proxy auth state: UNCHALLENGED
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:]: Set timeout 30000
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> PUT /posts/doc/1?timeout=1m HTTP/1.1
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Length: 17
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Type: application/json
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:9200
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
- 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpAsyncClient/4.1.2 (Java/1.8.0_144)
- 22:42:12.801 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:]: Event set [w]
- 22:42:12.801 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:rw]: -1 bytes read
- 22:42:12.801 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE] End of input
- 22:42:12.801 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-0 127.0.0.1:63985<->127.0.0.1:9200[ACTIVE][rw:rw]: Shutdown
- 22:42:12.802 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 1] connection aborted
- 22:42:12.802 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Releasing connection: [id: http-outgoing-0][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 1 of 5; total allocated: 1 of 10]
- 22:42:12.802 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection released: [id: http-outgoing-0][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 0 of 5; total allocated: 0 of 10]
- 22:42:12.803 [I/O dispatcher 1] DEBUG org.elasticsearch.client.RestClient - request [PUT http://localhost:9200/posts/doc/1?timeout=1m] failed
- org.apache.http.ConnectionClosedException: Connection closed
- at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:344)
- at org.apache.http.impl.nio.client.InternalRequestExecutor.endOfInput(InternalRequestExecutor.java:132)
- at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:261)
- at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
- at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
- at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
- at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
- at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
- at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
- at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
- at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
- at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
- at java.lang.Thread.run(Thread.java:748)
- 22:42:12.804 [I/O dispatcher 1] DEBUG org.elasticsearch.client.RestClient - added host [http://localhost:9200] to blacklist
- 22:42:12.805 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [CLOSED]: Disconnected
- And now that I have could the Exception with a breakpoint, I try to insert once more (with success):
- 22:44:45.261 [main] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] start execution
- 22:44:45.264 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
- 22:44:45.266 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Re-using cached 'basic' auth scheme for http://localhost:9200
- 22:44:45.266 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - No credentials for preemptive authentication
- 22:44:45.267 [main] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] Request connection for {}->http://localhost:9200
- 22:44:45.267 [main] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9200][total kept alive: 0; route allocated: 0 of 5; total allocated: 0 of 10]
- 22:44:45.271 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection leased: [id: http-outgoing-1][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 1 of 5; total allocated: 1 of 10]
- 22:44:45.271 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] Connection allocated: CPoolProxy{http-outgoing-1 [ACTIVE]}
- 22:44:45.271 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][r:]: Set attribute http.nio.exchange-handler
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:]: Event set [w]
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:]: Set timeout 0
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE]: Connected
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:]: Set attribute http.nio.http-exchange-state
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - Start connection routing
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Connection route established
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Attempt 1 to execute request
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Target auth state: UNCHALLENGED
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Proxy auth state: UNCHALLENGED
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:]: Set timeout 30000
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> PUT /posts/doc/1?timeout=1m HTTP/1.1
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Length: 17
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Type: application/json
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:9200
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
- 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpAsyncClient/4.1.2 (Java/1.8.0_144)
- 22:44:45.273 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:]: Event set [w]
- 22:44:45.273 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] Output ready
- 22:44:45.273 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] produce content
- 22:44:45.274 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Request completed
- 22:44:45.274 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] [content length: 17; pos: 17; completed: true]
- 22:44:45.274 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][rw:w]: 214 bytes written
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "PUT /posts/doc/1?timeout=1m HTTP/1.1[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Length: 17[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: application/json[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:9200[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpAsyncClient/4.1.2 (Java/1.8.0_144)[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "{"user":"kimchy"}"
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] Request ready
- 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][r:w]: Event cleared [w]
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][r:r]: 253 bytes read
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 201 Created[\r][\n]"
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Location: /posts/doc/1[\r][\n]"
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "content-type: application/json; charset=UTF-8[\r][\n]"
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "content-length: 137[\r][\n]"
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
- 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "{"_index":"posts","_type":"doc","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"created":true}"
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 201 Created
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Location: /posts/doc/1
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << content-type: application/json; charset=UTF-8
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << content-length: 137
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(137)] Response received
- 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Response received HTTP/1.1 201 Created
- 22:44:45.717 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(137)] Input ready
- 22:44:45.717 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Consume content
- 22:44:45.718 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] Connection can be kept alive indefinitely
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Response processed
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] releasing connection
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][r:r]: Remove attribute http.nio.exchange-handler
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Releasing connection: [id: http-outgoing-1][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 1 of 5; total allocated: 1 of 10]
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection [id: http-outgoing-1][route: {}->http://localhost:9200] can be kept alive indefinitely
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionImpl - http-outgoing-1 127.0.0.1:64030<->127.0.0.1:9200[ACTIVE][r:r]: Set timeout 0
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager - Connection released: [id: http-outgoing-1][route: {}->http://localhost:9200][total kept alive: 1; route allocated: 1 of 5; total allocated: 1 of 10]
- 22:44:45.721 [I/O dispatcher 2] DEBUG org.elasticsearch.client.RestClient - request [PUT http://localhost:9200/posts/doc/1?timeout=1m] returned [HTTP/1.1 201 Created]
- 22:44:45.722 [I/O dispatcher 2] DEBUG org.elasticsearch.client.RestClient - removed host [http://localhost:9200] from blacklist
- 22:44:45.722 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] [content length: 137; pos: 137; completed: true]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement