You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/11/25 06:20:26 UTC

[iotdb] branch xingtanzjr/add_status_code created (now 0e40889b1a)

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

xingtanzjr pushed a change to branch xingtanzjr/add_status_code
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 0e40889b1a print status code name when dispatch failed

This branch includes the following new commits:

     new 0e40889b1a print status code name when dispatch failed

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: print status code name when dispatch failed

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0e40889b1a6966da745796497648f3ae345f5c29
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri Nov 25 14:20:10 2022 +0800

    print status code name when dispatch failed
---
 .../iotdb/db/mpp/plan/scheduler/FragmentInstanceDispatcherImpl.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/scheduler/FragmentInstanceDispatcherImpl.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/scheduler/FragmentInstanceDispatcherImpl.java
index e8437f5e4b..c3635d51cf 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/scheduler/FragmentInstanceDispatcherImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/scheduler/FragmentInstanceDispatcherImpl.java
@@ -171,8 +171,9 @@ public class FragmentInstanceDispatcherImpl implements IFragInstanceDispatcher {
           TSendPlanNodeResp sendPlanNodeResp = client.sendPlanNode(sendPlanNodeReq);
           if (!sendPlanNodeResp.accepted) {
             logger.error(
-                "dispatch write failed. status: {}, message: {}, node {}",
+                "dispatch write failed. status: {}, code: {}, message: {}, node {}",
                 sendPlanNodeResp.status,
+                TSStatusCode.representOf(sendPlanNodeResp.status.code),
                 sendPlanNodeResp.message,
                 endPoint);
             if (sendPlanNodeResp.getStatus() == null) {