java 1.7 异步函数,使用elasticsearch-rest-high-level-client 7.3.1版本的异步方法报错ConnectionClosedException...

使用elasticsearch-rest-high-level-client 7.3.1版本的异步方法报错ConnectionClosedException

Elasticsearch

| 作者 try2learn

| 发布于2019年09月14日| 阅读数:5729

服务端使用的是elasticsearch7.3.1版本,java端使用elasticsearch-rest-high-level-client 7.3.1版本的异步方法,例如:

indexAsync和getAsync。会报一下错误:

org.apache.http.ConnectionClosedException: Connection is closed

at org.apache.http.impl.nio.NHttpConnectionBase.assertNotClosed(NHttpConnectionBase.java:502)

at org.apache.http.impl.nio.DefaultNHttpClientConnection.submitRequest(DefaultNHttpClientConnection.java:320)

at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.requestReady(HttpAsyncRequestExecutor.java:211)

at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.connected(HttpAsyncRequestExecutor.java:134)

at org.apache.http.impl.nio.client.InternalIODispatch.onConnected(InternalIODispatch.java:63)

a

你可能感兴趣的:(java,1.7,异步函数)