You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/07/01 07:30:58 UTC

[GitHub] [iotdb] wangchao316 commented on a diff in pull request #6552: [IOTDB-3529] Rename Region to RegionGroup and optimize the SetTTL process

wangchao316 commented on code in PR #6552:
URL: https://github.com/apache/iotdb/pull/6552#discussion_r911683528


##########
confignode/src/main/java/org/apache/iotdb/confignode/client/AsyncDataNodeClientPool.java:
##########
@@ -283,6 +286,23 @@ public void flush(TEndPoint endPoint, TFlushReq flushReq, FlushHandler handler)
     }
   }
 
+  /**
+   * Set TTL on specific DataNode
+   *
+   * @param endPoint The specific DataNode
+   */
+  public void setTTL(TEndPoint endPoint, TSetTTLReq setTTLReq, SetTTLHandler handler) {
+    for (int retry = 0; retry < 3; retry++) {
+      try {
+        clientManager.borrowClient(endPoint).setTTL(setTTLReq, handler);
+      } catch (IOException e) {
+        LOGGER.error("Can't connect to DataNode {}", endPoint, e);
+      } catch (TException e) {
+        LOGGER.error("Set TTL on DataNode {} failed", endPoint, e);

Review Comment:
   sleep...



-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org