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


##########
integration-test/src/test/java/org/apache/iotdb/confignode/it/procedure/IoTDBProcedureIT.java:
##########
@@ -219,4 +226,60 @@ public void subProcedureTest() throws Exception {
 
     LOGGER.info("test pass");
   }
+
+  @Test
+  public void showProceduresTest() throws Exception {
+    EnvFactory.getEnv().initClusterEnvironment(1, 1);
+    final String database = "root.sg1";
+    try (final Connection connection = EnvFactory.getEnv().getConnection();
+        Statement statement = connection.createStatement()) {
+      statement.execute(String.format("create database %s", database));
+    }
+
+    String ttlSql = "set ttl to %s 36%d0000";
+    AtomicBoolean stopInserting = new AtomicBoolean(false);
+    CountDownLatch procedureDetected = new CountDownLatch(1);
+    SyncConfigNodeIServiceClient client =
+        (SyncConfigNodeIServiceClient) 
EnvFactory.getEnv().getLeaderConfigNodeConnection();
+    AtomicLong atomicLong = new AtomicLong(0);
+    Thread createTimeseriesThread =

Review Comment:
   createTimeseriesThread -> setTtlThread



##########
integration-test/src/test/java/org/apache/iotdb/confignode/it/procedure/IoTDBProcedureIT.java:
##########
@@ -219,4 +226,60 @@ public void subProcedureTest() throws Exception {
 
     LOGGER.info("test pass");
   }
+
+  @Test
+  public void showProceduresTest() throws Exception {
+    EnvFactory.getEnv().initClusterEnvironment(1, 1);
+    final String database = "root.sg1";
+    try (final Connection connection = EnvFactory.getEnv().getConnection();
+        Statement statement = connection.createStatement()) {
+      statement.execute(String.format("create database %s", database));
+    }
+
+    String ttlSql = "set ttl to %s 36%d0000";
+    AtomicBoolean stopInserting = new AtomicBoolean(false);

Review Comment:
   stopInserting -> stopSettingTTL



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