Do not proceed with cluster creation if addCluster() fails. (#2068)
authorKomal Desai <98000016+desaikomal@users.noreply.github.com>
Wed, 27 Apr 2022 22:42:08 +0000 (15:42 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 22:42:08 +0000 (15:42 -0700)
commitb129bd664faae24f21aeb6c9e076153cc88e3635
tree625e7af7e1571c1bb39a9b37ac5aff87f381c11a
parent8824d22558a062dfd6ae7b8947224ed6a8e8709e
Do not proceed with cluster creation if addCluster() fails. (#2068)

In Helix-Tools - ClusterSetup::addCluster() doesn't check return value
of HelixAdmin::addCluster() method. It proceeds even when the call
returns failure.
Check the return status of addCluster() and throw an exception if cluster creation fails.
helix-core/src/main/java/org/apache/helix/tools/ClusterSetup.java
helix-core/src/test/java/org/apache/helix/tools/TestClusterSetup.java