You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2018/11/27 06:13:35 UTC

[GitHub] morningman commented on a change in pull request #354: Avoid 'No more data to read' error when handling stream load RPC

morningman 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_r236530948
 
 

 ##########
 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:
   Changed

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org