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/16 09:57:45 UTC

[iotdb] branch master updated: [IOTDB-2164] Fix IoTDBFlushQueryMergeIT (#4590)

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 fb7b18e  [IOTDB-2164] Fix IoTDBFlushQueryMergeIT (#4590)
fb7b18e is described below

commit fb7b18ee4ecc5ccff6c7a60820848fdd318a91c3
Author: BaiJian <er...@hotmail.com>
AuthorDate: Thu Dec 16 17:57:17 2021 +0800

    [IOTDB-2164] Fix IoTDBFlushQueryMergeIT (#4590)
---
 .../iotdb/db/integration/IoTDBFlushQueryMergeIT.java       | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBFlushQueryMergeIT.java b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBFlushQueryMergeIT.java
index c654a8a..64aa282 100644
--- a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBFlushQueryMergeIT.java
+++ b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBFlushQueryMergeIT.java
@@ -18,12 +18,10 @@
  */
 package org.apache.iotdb.db.integration;
 
-import org.apache.iotdb.db.exception.metadata.StorageGroupNotSetException;
 import org.apache.iotdb.integration.env.EnvFactory;
 import org.apache.iotdb.itbase.category.ClusterTest;
 import org.apache.iotdb.itbase.category.LocalStandaloneTest;
 import org.apache.iotdb.itbase.category.RemoteTest;
-import org.apache.iotdb.rpc.TSStatusCode;
 
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -186,14 +184,10 @@ public class IoTDBFlushQueryMergeIT {
         statement.execute(
             "FLUSH root.noexist.nodatagroup1,root.notExistGroup1,root.notExistGroup2");
       } catch (SQLException sqe) {
-        StorageGroupNotSetException tmpsgnse =
-            new StorageGroupNotSetException("root.notExistGroup1,root.notExistGroup2");
-        SQLException sqlException =
-            new SQLException(
-                TSStatusCode.STORAGE_GROUP_NOT_EXIST.getStatusCode()
-                    + ": "
-                    + tmpsgnse.getMessage());
-        assertEquals(sqlException.getMessage(), sqe.getMessage());
+        String expectedMsg =
+            "Storage group is not set for current seriesPath: [root.notExistGroup1,root.notExistGroup2]";
+        sqe.printStackTrace();
+        Assert.assertTrue(sqe.getMessage().contains(expectedMsg));
       }
     } catch (Exception e) {
       logger.error("testFlushNotExistGroupNoData failed", e);