diff --git a/addons/pulsar/scripts-ut-spec/init_broker_spec.sh b/addons/pulsar/scripts-ut-spec/init_broker_spec.sh index 4e01a7f55..280245b3d 100644 --- a/addons/pulsar/scripts-ut-spec/init_broker_spec.sh +++ b/addons/pulsar/scripts-ut-spec/init_broker_spec.sh @@ -131,10 +131,6 @@ Describe "Pulsar Init Broker Bash Script Tests" return 0 } - quit_script() { - return 0 - } - When run init_broker The status should be success End @@ -158,10 +154,6 @@ Describe "Pulsar Init Broker Bash Script Tests" return 0 } - quit_script() { - return 0 - } - python3() { return 0 } @@ -198,10 +190,6 @@ Describe "Pulsar Init Broker Bash Script Tests" return 0 } - quit_script() { - return 0 - } - When run init_broker The stdout should include "Initializing cluster metadata for cluster: my-cluster" The status should be success diff --git a/addons/pulsar/scripts/init-broker.sh b/addons/pulsar/scripts/init-broker.sh index e2147cb0e..a9f194c4b 100755 --- a/addons/pulsar/scripts/init-broker.sh +++ b/addons/pulsar/scripts/init-broker.sh @@ -77,11 +77,11 @@ init_broker() { local idx=${POD_NAME##*-} if [ $idx -ne 0 ]; then wait_for_cluster_metadata "$zookeeperServers" "$clusterName" - echo "Cluster already initialized" && quit_script + echo "Waiting for cluster initialize ready." fi if check_cluster_initialized "$zookeeperServers" "$clusterName"; then - echo "Cluster already initialized" && quit_script + echo "Cluster already initialized" fi initialize_cluster_metadata "$clusterName" "$zookeeperServers" "$webServiceUrl" "$brokerServiceUrl"