You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/01/06 09:24:55 UTC
[GitHub] [iotdb] jt2594838 commented on a change in pull request #4708: [IOTDB-2270] Thread leaks in tests
jt2594838 commented on a change in pull request #4708:
URL: https://github.com/apache/iotdb/pull/4708#discussion_r779408237
##########
File path: cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
##########
@@ -209,15 +173,35 @@ private int getDeviceCount(Map<String, List<PartialPath>> sgPathMap, PartialPath
remoteFutures.add(
remoteQueryThreadPool.submit(
() -> {
- try {
- result.addAndGet(getRemoteDeviceCount(partitionGroup, pathsToQuery));
- } catch (MetadataException e) {
- logger.warn(
- "Cannot get remote device count of {} from {}",
- pathsToQuery,
- partitionGroup,
- e);
+ if (partitionGroup.contains(metaGroupMember.getThisNode())) {
+ // this node is a member of the group, perform a local query after synchronizing
+ // with the
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org