This is an automated email from the ASF dual-hosted git repository.
wangchao316 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 2b0394f [IOTDB-1960] Fix count timeseries in cluster mode. (#4617)
2b0394f is described below
commit 2b0394f8f474680544219de667fb8ffffa3dd01b
Author: ZhangHongYin <[email protected]>
AuthorDate: Fri Dec 24 14:33:33 2021 +0800
[IOTDB-1960] Fix count timeseries in cluster mode. (#4617)
[IOTDB-1960] Fix count timeseries in cluster mode. (#4617)
---
.../main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
b/cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
index dbdb3db..0c35cb6 100644
---
a/cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
+++
b/cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
@@ -313,7 +313,7 @@ public class ClusterPlanExecutor extends PlanExecutor {
}
Map<String, String> sgPathMap =
IoTDB.metaManager.groupPathByStorageGroup(wildcardPath);
if (sgPathMap.isEmpty()) {
- throw new PathNotExistException(path.getFullPath());
+ return 0;
}
logger.debug("The storage groups of path {} are {}", path,
sgPathMap.keySet());
int ret = 0;