Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tserver lock entries per group #5199

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ddanielr
Copy link
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
Copy link
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
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
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
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

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