Skip to content

Remove tserver lock entries per group#5199

Closed
ddanielr wants to merge 1 commit intoapache:mainfrom
ddanielr:bugfix/5178
Closed

Remove tserver lock entries per group#5199
ddanielr wants to merge 1 commit intoapache:mainfrom
ddanielr:bugfix/5178

Conversation

@ddanielr
Copy link
Copy Markdown
Contributor

@ddanielr ddanielr commented Dec 19, 2024

Removes all tserver lock entries when a group of tservers is stopped or killed.

Requires #5174 to be merged in beforehand.

Closes #5178

Removes all tserver lock entries when a group of tservers is stopped or
killed.
@ddanielr ddanielr added this to the 4.0.0 milestone Dec 19, 2024
@ddanielr ddanielr requested a review from ctubbsii December 19, 2024 04:15
Comment thread assemble/bin/accumulo-cluster
Copy link
Copy Markdown
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be rebased, to make sure it works with the latest changes, including the addition of the colorized output. A few minor tweaks, but otherwise, looks good.

if [[ $ARG_TSERVER == 1 ]]; then
if ! isDebug; then
echo "Cleaning all tserver entries in ZooKeeper"
$accumulo_cmd org.apache.accumulo.server.util.ZooZap -tservers -group "$zap_group"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be quoted because it can contain spaces in the path.

Suggested change
$accumulo_cmd org.apache.accumulo.server.util.ZooZap -tservers -group "$zap_group"
"$accumulo_cmd" org.apache.accumulo.server.util.ZooZap -tservers -group "$zap_group"

if [[ $ARG_LOCAL == 0 && ($operation == "stop" || $operation == "kill") ]]; then
if [[ $ARG_TSERVER == 1 ]]; then
if ! isDebug; then
echo "Cleaning all tserver entries in ZooKeeper"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Cleaning all tserver entries in ZooKeeper"
echo "Cleaning all $(yellow tserver) entries in ZooKeeper"

elif [[ $ARG_ALL == 1 ]]; then
if ! isDebug; then
echo "Cleaning all server entries in ZooKeeper"
$accumulo_cmd org.apache.accumulo.server.util.ZooZap -manager -tservers -compactors -sservers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$accumulo_cmd org.apache.accumulo.server.util.ZooZap -manager -tservers -compactors -sservers
"$accumulo_cmd" org.apache.accumulo.server.util.ZooZap -manager -tservers -compactors -sservers

@dlmarion
Copy link
Copy Markdown
Contributor

I didn't see this when I created #5321. #5321 includes scan server and compactor cleanup too.

@ddanielr
Copy link
Copy Markdown
Contributor Author

Closing this in favor of #5321

@ddanielr ddanielr closed this Feb 19, 2025
@ddanielr ddanielr deleted the bugfix/5178 branch February 19, 2025 20:49
@ctubbsii ctubbsii removed this from the 4.0.0 milestone Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix stopping tserver groups in accumulo-cluster

3 participants