imay commented on a change in pull request #354: Avoid 'No more data to read'
error when handling stream load RPC
URL: https://github.com/apache/incubator-doris/pull/354#discussion_r236528549
##########
File path: fe/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
##########
@@ -580,7 +580,13 @@ public TLoadTxnBeginResult
loadTxnBegin(TLoadTxnBeginRequest request) throws TEx
} catch (UserException e) {
status.setStatus_code(TStatusCode.ANALYSIS_ERROR);
status.setError_msgs(Lists.newArrayList(e.getMessage()));
+ } catch (Throwable e) {
+ LOG.warn("catch unknown result.", e);
+ status.setStatus_code(TStatusCode.INTERNAL_ERROR);
+
status.setError_msgs(Lists.newArrayList(Strings.nullToEmpty(e.getMessage())));
Review comment:
call `status.addToError_msgs` instead
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]