imay commented on a change in pull request #2198: Add more note for streamLoad java sample URL: https://github.com/apache/incubator-doris/pull/2198#discussion_r346228648
########## File path: samples/stream_load/java/DorisStreamLoad.java ########## @@ -56,15 +56,45 @@ * 3 run this class, you should see the following output: * * { + * "TxnId": 27, + * "Label": "39c25a5c-7000-496e-a98e-348a264c81de" * "Status": "Success", * "Message": "OK", + * "NumberTotalRows": 10, * "NumberLoadedRows": 10, * "NumberFilteredRows": 0, + * "NumberUnselectedRows": 0, * "LoadBytes": 50, - * "LoadTimeMs": 151, - * "Label": "39c25a5c-7000-496e-a98e-348a264c81de" + * "LoadTimeMs": 151 * } * + * Attention: + * + * 1 wrong dependency version(such as 4.4) of httpclient may cause shaded.org.apache.http.ProtocolException + * Caused by: shaded.org.apache.http.ProtocolException: Content-Length header already present + * at shaded.org.apache.http.protocol.RequestContent.process(RequestContent.java:96) + * at shaded.org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132) + * at shaded.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:182) + * at shaded.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) + * at shaded.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) + * at shaded.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) + * + *2 run this class more than once, the status code for http response is still ok, and you will see + * the following output: + * + * { + * "TxnId": -1, + * "Label": "39c25a5c-7000-496e-a98e-348a264c81de" Review comment: ```suggestion * "Label": "39c25a5c-7000-496e-a98e-348a264c81de", ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org