vesoft-inc / nebula-java

Client API and data importer of Nebula Graph in Java
Apache License 2.0
164 stars 121 forks source link

Http2 example failed #590

Closed songqing closed 4 months ago

songqing commented 4 months ago

Describe the bug (required) When I test the example GraphSessionPoolWithHttp2Example.java, where "useHttp2" is true, the example failed with "ERROR [main] - pool init failed.". And I saw on the server side, there is the error message,

I20240223 11:48:08.052662 43893 Cpp2Worker.cpp:143] Cpp2Worker: Creating connection for socket 507
E20240223 11:48:08.052697 43892 HeaderServerChannel.cpp:100] Received invalid request from client: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ') (transport apache::thrift::PreReceivedDataAsyncTransportWrapper, address ::ffff:10.xx.xx.xx, port 43500)
E20240223 11:48:08.052731 43893 HeaderServerChannel.cpp:100] Received invalid request from client: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ') (transport apache::thrift::PreReceivedDataAsyncTransportWrapper, address ::ffff:10.xx.xx.xx, port 43502)
I20240223 11:48:08.052762 43892 HeaderServerChannel.cpp:452] Receive error: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ')
I20240223 11:48:08.052784 43893 HeaderServerChannel.cpp:452] Receive error: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ')
I20240223 11:48:08.052785 43892 Cpp2Connection.cpp:638] Channel [::ffff:10.xx.xx.xx]:43500 closed: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ')
I20240223 11:48:08.052793 43893 Cpp2Connection.cpp:638] Channel [::ffff:10.xx.xx.xx]:43502 closed: apache::thrift::transport::TTransportException: Header transport frame is too large: 1347569952 (hex 0x50524920, ascii 'PRI ')
I20240223 11:48:08.052814 43893 Acceptor.cpp:476] Acceptor=0x7fd35ac3d328 onEmpty()
I20240223 11:48:08.052804 43892 Acceptor.cpp:476] Acceptor=0x7fd35ac3ce28 onEmpty()
E20240223 11:48:08.052893 43893 PeekingManager.h:262] peekSuccess failed, dropping connection: apache::thrift::transport::TTransportException: Channel is !good()
E20240223 11:48:08.052898 43892 PeekingManager.h:262] peekSuccess failed, dropping connection: apache::thrift::transport::TTransportException: Channel is !good()

So, how can I solve this problem? thanks for any advice.

Your Environments (required)

songqing commented 4 months ago

@Nicole00 @codesigner Could you help to look at this problem? thanks a lot

Nicole00 commented 4 months ago

do you enable the http2 for nebulagraph server?

Nicole00 commented 4 months ago

the http2 function is only available for enterprise.

songqing commented 4 months ago

do you enable the http2 for nebulagraph server?

I used the community edition for nebula server, thanks for your reply