You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/06/05 04:20:51 UTC
[iotdb] 01/01: Revert "[To rel/0.12] temprorary wait 3 seconds in
CliearCacheIT for emergent releasing processing (#3349)"
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch revert-3349-disableCacheTest_tmp
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 0034ff21460eb448abb6e63f34953f47ff1a88c3
Author: Xiangdong Huang <hx...@qq.com>
AuthorDate: Sat Jun 5 12:20:30 2021 +0800
Revert "[To rel/0.12] temprorary wait 3 seconds in CliearCacheIT for emergent releasing processing (#3349)"
This reverts commit fa6dbb7301a4cdf482d2f89850c5ce294ad27c05.
---
.../java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java
index e7100fd..07754e0 100644
--- a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java
+++ b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java
@@ -33,7 +33,9 @@ import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
public class IoTDBClearCacheIT {
@@ -161,11 +163,6 @@ public class IoTDBClearCacheIT {
statement.execute("CLEAR CACHE");
- // TODO FIXME
- // when releasing v0.12.1, this test failed because the cache is not cleared.
- // try to wait 3 seconds here for emergency processing
- Thread.sleep(3000);
-
assertTrue(ChunkCache.getInstance().isEmpty());
assertTrue(TimeSeriesMetadataCache.getInstance().isEmpty());