This is an automated email from the ASF dual-hosted git repository.
tanxinyu 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 c5582e7 [To rel/0.12][IOTDB-1960] Fix count timeseries in cluster
mode. (#4633)
c5582e7 is described below
commit c5582e7250b54b6f4f3acd13a44598b30c16c724
Author: ZhangHongYin <[email protected]>
AuthorDate: Fri Dec 24 21:56:44 2021 +0800
[To rel/0.12][IOTDB-1960] Fix count timeseries in cluster mode. (#4633)
[To rel/0.12][IOTDB-1960] Fix count timeseries in cluster mode.
---
.../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 10e6631..33cc7cc 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
@@ -302,7 +302,7 @@ public class ClusterPlanExecutor extends PlanExecutor {
// "root.group1" -> "root.group1.*", "root.group2" -> "root.group2.*" ...
Map<String, String> sgPathMap =
IoTDB.metaManager.determineStorageGroup(path);
if (sgPathMap.isEmpty()) {
- throw new PathNotExistException(path.getFullPath());
+ return 0;
}
logger.debug("The storage groups of path {} are {}", path,
sgPathMap.keySet());
int ret = 0;