Skip to content

Commit 0f6bcf8

Browse files
committed
Merge branch '2.1' into 3.1
2 parents 359c745 + 4e0c998 commit 0f6bcf8

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
@@ -473,9 +473,29 @@ function control_services() {
473473
local group
474474
local tserver
475475
local G
476+
local sserver
477+
local gc
476478
if [[ $ARG_ALL == 1 && $ARG_LOCAL == 0 && $operation == "stop" ]]; then
477479
echo "Stopping Accumulo cluster..."
478480
if ! isDebug; then
481+
# Stop all of the the Scan Server processes
482+
for group in $SSERVER_GROUPS; do
483+
echo "Executing $(green "$ARG_CMD") on $(purple scan servers) for group $(yellow "$group")"
484+
hosts="SSERVER_HOSTS_$group"
485+
for sserver in ${!hosts}; do
486+
if canRunOnHost "$sserver"; then
487+
execute_command "$operation" "$sserver" sserver "$group" "-g" "$group"
488+
fi
489+
done
490+
done
491+
# Stop the GC processes, they scan and write to the metadata table
492+
for gc in $GC_HOSTS; do
493+
if canRunOnHost "$gc"; then
494+
echo "Executing $(green "$ARG_CMD") on $(purple garbage collectors)"
495+
execute_command "$operation" "$gc" gc "default"
496+
fi
497+
done
498+
# Try to cleanly stop the TabletServers and Manager
479499
if ! "$accumulo_cmd" admin stopAll; then
480500
echo "Invalid password or unable to connect to the manager"
481501
echo "Initiating forced shutdown in 15 seconds (Ctrl-C to abort)"
@@ -550,7 +570,6 @@ function control_services() {
550570
done
551571
fi
552572

553-
local gc
554573
if [[ $ARG_ALL == 1 || $ARG_GC == 1 ]]; then
555574
for gc in $GC_HOSTS; do
556575
if canRunOnHost "$gc"; then
@@ -581,7 +600,6 @@ function control_services() {
581600
fi
582601

583602
local sserver_groups
584-
local sserver
585603
if [[ $ARG_ALL == 1 || $ARG_SSERVER == 1 ]]; then
586604
sserver_groups=$SSERVER_GROUPS
587605
if [[ -n $ARG_SSERVER_GROUP ]]; then

0 commit comments

Comments
 (0)