jt2594838 commented on a change in pull request #1866:
URL: https://github.com/apache/iotdb/pull/1866#discussion_r512372161



##########
File path: 
cluster/src/main/java/org/apache/iotdb/cluster/server/member/RaftMember.java
##########
@@ -1334,7 +1338,7 @@ private TSStatus handleLogExecutionException(
           .getStatus(Arrays.asList(((BatchInsertionException) 
cause).getFailingStatus()));
     }
     TSStatus tsStatus = 
StatusUtils.getStatus(StatusUtils.EXECUTE_STATEMENT_ERROR,
-        cause.getClass().getName() + ":" + cause.getMessage());
+        cause.getMessage());
     if (cause instanceof IoTDBException) {

Review comment:
       This is not relevant to this PR, but it occurs to me that 
RunTimeExceptions sometimes does not provide useful messages, and it would 
difficult to locate the problem.
   So please add this:
   ```
   if (cause instanceof RunTimeException) {
     logger.error("RuntimeException during executing {}", log , cause);
   }
   ```
   




----------------------------------------------------------------
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:
[email protected]


Reply via email to