Skip to content

Commit

Permalink
fic comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Rookie committed Oct 25, 2024
1 parent 84a0308 commit e606004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions addons/pulsar/scripts-ut-spec/init_broker_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -158,10 +154,6 @@ Describe "Pulsar Init Broker Bash Script Tests"
return 0
}

quit_script() {
return 0
}

python3() {
return 0
}
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions addons/pulsar/scripts/init-broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e606004

Please sign in to comment.