You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by sn...@apache.org on 2022/12/22 21:36:59 UTC
[pinot] branch master updated: Bugfix: Use correct exception import in TableRebalancer. (#10025)
This is an automated email from the ASF dual-hosted git repository.
snlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 36cb37bf8c Bugfix: Use correct exception import in TableRebalancer. (#10025)
36cb37bf8c is described below
commit 36cb37bf8cce147212b4b7898cb8121bb2153abf
Author: Mayank Shrivastava <ma...@apache.org>
AuthorDate: Thu Dec 22 13:36:52 2022 -0800
Bugfix: Use correct exception import in TableRebalancer. (#10025)
The `ZkBadVersionException` exception is being imported from incorrect library.
This causes exception to be not caught correctly and leads to various issues.
---
.../apache/pinot/controller/helix/core/rebalance/TableRebalancer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java b/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java
index 5f4c7be3c0..26d0329dd2 100644
--- a/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java
+++ b/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java
@@ -31,7 +31,6 @@ import java.util.TreeSet;
import java.util.concurrent.TimeoutException;
import java.util.function.ToIntFunction;
import javax.annotation.Nullable;
-import org.I0Itec.zkclient.exception.ZkBadVersionException;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.lang3.tuple.Pair;
@@ -43,6 +42,7 @@ import org.apache.helix.PropertyKey;
import org.apache.helix.model.ExternalView;
import org.apache.helix.model.IdealState;
import org.apache.helix.zookeeper.datamodel.ZNRecord;
+import org.apache.helix.zookeeper.zkclient.exception.ZkBadVersionException;
import org.apache.pinot.common.assignment.InstanceAssignmentConfigUtils;
import org.apache.pinot.common.assignment.InstancePartitions;
import org.apache.pinot.common.assignment.InstancePartitionsUtils;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org