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:19:39 UTC
[iotdb] branch rel/0.12 updated: [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 rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new fa6dbb7 [To rel/0.12] temprorary wait 3 seconds in CliearCacheIT for emergent releasing processing (#3349)
fa6dbb7 is described below
commit fa6dbb7301a4cdf482d2f89850c5ce294ad27c05
Author: Xiangdong Huang <hx...@apache.org>
AuthorDate: Sat Jun 5 12:19:11 2021 +0800
[To rel/0.12] temprorary wait 3 seconds in CliearCacheIT for emergent releasing processing (#3349)
---
.../java/org/apache/iotdb/db/integration/IoTDBClearCacheIT.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 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 07754e0..e7100fd 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,9 +33,7 @@ import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.Assert.*;
public class IoTDBClearCacheIT {
@@ -163,6 +161,11 @@ 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());