You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/12/17 01:10:09 UTC

[iotdb] branch master updated: [IOTDB-2168] Fix IoTDBTtlIT (#4592)

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

haonan 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 62d9c86  [IOTDB-2168] Fix IoTDBTtlIT (#4592)
62d9c86 is described below

commit 62d9c86b4e205d3cf2f4b8b28305092c829aa607
Author: BaiJian <er...@hotmail.com>
AuthorDate: Fri Dec 17 09:09:30 2021 +0800

    [IOTDB-2168] Fix IoTDBTtlIT (#4592)
---
 .../src/test/java/org/apache/iotdb/db/integration/IoTDBTtlIT.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBTtlIT.java b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBTtlIT.java
index a0107ba..1f27929 100644
--- a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBTtlIT.java
+++ b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBTtlIT.java
@@ -54,7 +54,7 @@ public class IoTDBTtlIT {
 
   @Test
   @Category({ClusterTest.class})
-  public void testTTL() throws SQLException {
+  public void testTTL() throws SQLException, InterruptedException {
     try (Connection connection = EnvFactory.getEnv().getConnection();
         Statement statement = connection.createStatement()) {
       try {
@@ -126,6 +126,8 @@ public class IoTDBTtlIT {
       }
 
       statement.execute("UNSET TTL TO root.TTL_SG1");
+      // make sure other nodes have applied UNSET TTL
+      Thread.sleep(1000);
       for (int i = 0; i < 100; i++) {
         statement.execute(
             String.format(