Skip to content

Commit 2c346b4

Browse files
committed
[hotfix] Fix unstable FlinkCatalogTest
1 parent 0626b16 commit 2c346b4

File tree

1 file changed

+1
-2
lines changed
  • fluss-connectors/fluss-connector-flink/src/test/java/com/alibaba/fluss/connector/flink/catalog

1 file changed

+1
-2
lines changed

fluss-connectors/fluss-connector-flink/src/test/java/com/alibaba/fluss/connector/flink/catalog/FlinkCatalogTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.alibaba.fluss.config.ConfigOptions;
2020
import com.alibaba.fluss.config.Configuration;
2121
import com.alibaba.fluss.server.testutils.FlussClusterExtension;
22-
import com.alibaba.fluss.shaded.zookeeper3.org.apache.zookeeper.KeeperException;
2322
import com.alibaba.fluss.utils.ExceptionUtils;
2423

2524
import org.apache.flink.table.api.DataTypes;
@@ -136,7 +135,7 @@ void beforeEach() throws Exception {
136135
} catch (CatalogException e) {
137136
// the auto partitioned manager may create the db zk node
138137
// in an another thread, so if exception is NodeExistsException, just ignore
139-
if (!ExceptionUtils.findThrowable(e, KeeperException.NodeExistsException.class)
138+
if (!ExceptionUtils.findThrowableWithMessage(e, "KeeperException$NodeExistsException")
140139
.isPresent()) {
141140
throw e;
142141
}

0 commit comments

Comments
 (0)