Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.60 KB | None | 0 0
  1. The log (when insert fails):
  2. 22:42:12.690 [main] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 1] start execution
  3. 22:42:12.706 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
  4. 22:42:12.733 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Re-using cached 'basic' auth scheme for http://localhost:9200
  5. 22:42:12.735 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - No credentials for preemptive authentication
  6. 22:42:12.735 [main] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 1] Request connection for {}->http://localhost:9200
  7. 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]
  8. 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]
  9. 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]}
  10. 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
  11. 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]
  12. 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
  13. 22:42:12.789 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE]: Connected
  14. 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
  15. 22:42:12.794 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - Start connection routing
  16. 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Connection route established
  17. 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 1] Attempt 1 to execute request
  18. 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Target auth state: UNCHALLENGED
  19. 22:42:12.796 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.MainClientExec - Proxy auth state: UNCHALLENGED
  20. 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
  21. 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. 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Length: 17
  23. 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Type: application/json
  24. 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:9200
  25. 22:42:12.797 [I/O dispatcher 1] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
  26. 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)
  27. 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]
  28. 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
  29. 22:42:12.801 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [ACTIVE] End of input
  30. 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
  31. 22:42:12.802 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 1] connection aborted
  32. 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]
  33. 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]
  34. 22:42:12.803 [I/O dispatcher 1] DEBUG org.elasticsearch.client.RestClient - request [PUT http://localhost:9200/posts/doc/1?timeout=1m] failed
  35. org.apache.http.ConnectionClosedException: Connection closed
  36. at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:344)
  37. at org.apache.http.impl.nio.client.InternalRequestExecutor.endOfInput(InternalRequestExecutor.java:132)
  38. at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:261)
  39. at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
  40. at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
  41. at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
  42. at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
  43. at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
  44. at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
  45. at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
  46. at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
  47. at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
  48. at java.lang.Thread.run(Thread.java:748)
  49. 22:42:12.804 [I/O dispatcher 1] DEBUG org.elasticsearch.client.RestClient - added host [http://localhost:9200] to blacklist
  50. 22:42:12.805 [I/O dispatcher 1] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-0 [CLOSED]: Disconnected
  51.  
  52. And now that I have could the Exception with a breakpoint, I try to insert once more (with success):
  53. 22:44:45.261 [main] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] start execution
  54. 22:44:45.264 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
  55. 22:44:45.266 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Re-using cached 'basic' auth scheme for http://localhost:9200
  56. 22:44:45.266 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - No credentials for preemptive authentication
  57. 22:44:45.267 [main] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] Request connection for {}->http://localhost:9200
  58. 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]
  59. 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]
  60. 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]}
  61. 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
  62. 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]
  63. 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
  64. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE]: Connected
  65. 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
  66. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - Start connection routing
  67. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Connection route established
  68. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Attempt 1 to execute request
  69. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Target auth state: UNCHALLENGED
  70. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - Proxy auth state: UNCHALLENGED
  71. 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
  72. 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
  73. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Length: 17
  74. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Type: application/json
  75. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:9200
  76. 22:44:45.272 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
  77. 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)
  78. 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]
  79. 22:44:45.273 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] Output ready
  80. 22:44:45.273 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] produce content
  81. 22:44:45.274 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Request completed
  82. 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]
  83. 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
  84. 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]"
  85. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Length: 17[\r][\n]"
  86. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: application/json[\r][\n]"
  87. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:9200[\r][\n]"
  88. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
  89. 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]"
  90. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
  91. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 >> "{"user":"kimchy"}"
  92. 22:44:45.275 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE] Request ready
  93. 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]
  94. 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
  95. 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 201 Created[\r][\n]"
  96. 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "Location: /posts/doc/1[\r][\n]"
  97. 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]"
  98. 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "content-length: 137[\r][\n]"
  99. 22:44:45.691 [I/O dispatcher 2] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
  100. 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}"
  101. 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 201 Created
  102. 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << Location: /posts/doc/1
  103. 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << content-type: application/json; charset=UTF-8
  104. 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.headers - http-outgoing-1 << content-length: 137
  105. 22:44:45.710 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(137)] Response received
  106. 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
  107. 22:44:45.717 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalIODispatch - http-outgoing-1 [ACTIVE(137)] Input ready
  108. 22:44:45.717 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Consume content
  109. 22:44:45.718 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] Connection can be kept alive indefinitely
  110. 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.MainClientExec - [exchange: 2] Response processed
  111. 22:44:45.721 [I/O dispatcher 2] DEBUG org.apache.http.impl.nio.client.InternalHttpAsyncClient - [exchange: 2] releasing connection
  112. 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
  113. 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]
  114. 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
  115. 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
  116. 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]
  117. 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]
  118. 22:44:45.722 [I/O dispatcher 2] DEBUG org.elasticsearch.client.RestClient - removed host [http://localhost:9200] from blacklist
  119. 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