You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2019/04/21 02:45:24 UTC

[incubator-iotdb] branch refactor_mem_controller updated: clear memory usage before test

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

jiangtian pushed a commit to branch refactor_mem_controller
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/refactor_mem_controller by this push:
     new e886b4e  clear memory usage before test
e886b4e is described below

commit e886b4e903a971cda604ce2fc57fa2bc29aacf5d
Author: 江天 <jt...@163.com>
AuthorDate: Sun Apr 21 10:44:03 2019 +0800

    clear memory usage before test
---
 iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java b/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index 84292dc..9eb1c4e 100644
--- a/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -175,5 +175,6 @@ public class EnvironmentUtils {
     MultiFileLogNodeManager.getInstance().start();
     TEST_QUERY_JOB_ID = QueryResourceManager.getInstance().assignJobId();
     TEST_QUERY_CONTEXT = new QueryContext(TEST_QUERY_JOB_ID);
+    BasicMemController.getInstance().clear();
   }
 }