Skip to content

Commit e941517

Browse files
committed
Merge branch '3.1'
2 parents 822c706 + 0f6bcf8 commit e941517

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

assemble/bin/accumulo-cluster

+20-2
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,29 @@ function control_services() {
419419
local group
420420
local tserver
421421
local G
422+
local sserver
423+
local gc
422424
if [[ $ARG_ALL == 1 && $ARG_LOCAL == 0 && $operation == "stop" ]]; then
423425
echo "Stopping Accumulo cluster..."
424426
if ! isDebug; then
427+
# Stop all of the the Scan Server processes
428+
for group in $SSERVER_GROUPS; do
429+
echo "Executing $(green "$ARG_CMD") on $(purple scan servers) for group $(yellow "$group")"
430+
hosts="SSERVER_HOSTS_$group"
431+
for sserver in ${!hosts}; do
432+
if canRunOnHost "$sserver"; then
433+
execute_command "$operation" "$sserver" sserver "$group" "-g" "$group"
434+
fi
435+
done
436+
done
437+
# Stop the GC processes, they scan and write to the metadata table
438+
for gc in $GC_HOSTS; do
439+
if canRunOnHost "$gc"; then
440+
echo "Executing $(green "$ARG_CMD") on $(purple garbage collectors)"
441+
execute_command "$operation" "$gc" gc "default"
442+
fi
443+
done
444+
# Try to cleanly stop the TabletServers and Manager
425445
if ! "$accumulo_cmd" admin stopAll; then
426446
echo "Invalid password or unable to connect to the manager"
427447
echo "Initiating forced shutdown in 15 seconds (Ctrl-C to abort)"
@@ -500,7 +520,6 @@ function control_services() {
500520
done
501521
fi
502522

503-
local gc
504523
if [[ $ARG_ALL == 1 || $ARG_GC == 1 ]]; then
505524
for gc in $GC_HOSTS; do
506525
if canRunOnHost "$gc"; then
@@ -521,7 +540,6 @@ function control_services() {
521540
fi
522541

523542
local sserver_groups
524-
local sserver
525543
if [[ $ARG_ALL == 1 || $ARG_SSERVER == 1 ]]; then
526544
sserver_groups=$SSERVER_GROUPS
527545
if [[ -n $ARG_SSERVER_GROUP ]]; then

0 commit comments

Comments
 (0)