jt2594838 commented on code in PR #18297:
URL: https://github.com/apache/iotdb/pull/18297#discussion_r3662260718


##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java:
##########
@@ -2259,19 +2259,23 @@ protected TSStatus waitingProcedureFinished(
     return status;
   }
 
-  private static String wrapTimeoutMessageForPipeProcedure(String message) {
-    if (message.equals(PROCEDURE_TIMEOUT_MESSAGE)) {
-      return message
+  private static boolean isProcedureTimeout(final TSStatus status) {
+    return status.getCode() == 
TSStatusCode.INTERNAL_REQUEST_TIME_OUT.getStatusCode();
+  }
+
+  private static String wrapTimeoutMessageForPipeProcedure(final TSStatus 
status) {
+    if (isProcedureTimeout(status)) {
+      return status.getMessage()
           + " Please manually check later whether the procedure is executed 
successfully.";
     }

Review Comment:
   Supplement i18n for this.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to