Skip to content

Commit

Permalink
fixes bug with starting multiple group of scan servers
Browse files Browse the repository at this point in the history
When trying to start and stop multiple groups of scan servers using the
accumulo-cluster script the groups would interfere with each other.
This change fixes that by making the the scan servers use the group in
the instance id like compactors do.

Ran into this while workiing on apache#4444 and pulled it out as a stand alone
fix.
  • Loading branch information
keith-turner committed Apr 10, 2024
1 parent 90bcb46 commit 315c710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assemble/bin/accumulo-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function control_service() {
ACCUMULO_SERVICE_INSTANCE=""
[[ $service == "tserver" && ${NUM_TSERVERS:-1} -gt 1 ]] && ACCUMULO_SERVICE_INSTANCE=${inst_id}
[[ $service == "compactor" ]] && ACCUMULO_SERVICE_INSTANCE="${inst_id}_${5}"
[[ $service == "sserver" && ${NUM_SSERVERS:-1} -gt 1 ]] && ACCUMULO_SERVICE_INSTANCE=${inst_id}
[[ $service == "sserver" ]] && ACCUMULO_SERVICE_INSTANCE="${inst_id}_${5}"

if [[ $host == localhost || $host == "$(hostname -s)" || $host == "$(hostname -f)" || "$(hostname -I)" =~ $host ]]; then
#
Expand Down

0 comments on commit 315c710

Please sign in to comment.