This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b15ab68a59 Report INTERNAL_SERVER_ERROR in executeBatch (#13106)
9b15ab68a59 is described below

commit 9b15ab68a59fa7028b3b14b88a826accff105e2f
Author: Jiang Tian <[email protected]>
AuthorDate: Thu Aug 8 11:52:55 2024 +0800

    Report INTERNAL_SERVER_ERROR in executeBatch (#13106)
    
    * Report INTERNAL_SERVER_ERROR in executeBatch
    
    * Report INTERNAL_SERVER_ERROR in executeBatch
---
 .../apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
index e74319c9a7a..5c2b3f1f492 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
@@ -1565,9 +1565,7 @@ public class ClientRPCServiceImpl implements 
IClientRPCServiceWithHandler {
           TSStatus status =
               onQueryException(
                   e, "\"" + statement + "\". " + 
OperationType.EXECUTE_BATCH_STATEMENT);
-          if (status.getCode() != 
TSStatusCode.INTERNAL_SERVER_ERROR.getStatusCode()) {
-            isAllSuccessful = false;
-          }
+          isAllSuccessful = false;
           results.add(status);
         } finally {
           addStatementExecutionLatency(

Reply via email to