This is an automated email from the ASF dual-hosted git repository.
yongzao pushed a commit to branch remove-useless-try-catch
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/remove-useless-try-catch by
this push:
new 283d39efff5 Finish
283d39efff5 is described below
commit 283d39efff5d72c69ed6d1e8fa82fe16bb923ece
Author: YongzaoDan <[email protected]>
AuthorDate: Mon Apr 22 17:38:23 2024 +0800
Finish
---
.../manager/load/balancer/RouteBalancer.java | 26 +++++++++-------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
index 9516b2501b8..40e210c7f6f 100644
---
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
+++
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
@@ -310,21 +310,17 @@ public class RouteBalancer implements
IClusterStatusSubscriber {
regionPriorityEntry : differentPriorityMap.entrySet()) {
if (!Objects.equals(
regionPriorityEntry.getValue().getRight(),
regionPriorityEntry.getValue().getLeft())) {
- try {
- LOGGER.info(
- "[RegionPriority]\t {}: {}->{}",
- regionPriorityEntry.getKey(),
- regionPriorityEntry.getValue().getLeft() == null
- ? "null"
- :
regionPriorityEntry.getValue().getLeft().getDataNodeLocations().stream()
- .map(TDataNodeLocation::getDataNodeId)
- .collect(Collectors.toList()),
-
regionPriorityEntry.getValue().getRight().getDataNodeLocations().stream()
- .map(TDataNodeLocation::getDataNodeId)
- .collect(Collectors.toList()));
- } catch (Exception e) {
- LOGGER.error("Unexpected exception", e);
- }
+ LOGGER.info(
+ "[RegionPriority]\t {}: {}->{}",
+ regionPriorityEntry.getKey(),
+ regionPriorityEntry.getValue().getLeft() == null
+ ? "null"
+ :
regionPriorityEntry.getValue().getLeft().getDataNodeLocations().stream()
+ .map(TDataNodeLocation::getDataNodeId)
+ .collect(Collectors.toList()),
+
regionPriorityEntry.getValue().getRight().getDataNodeLocations().stream()
+ .map(TDataNodeLocation::getDataNodeId)
+ .collect(Collectors.toList()));
}
}
}