-
Notifications
You must be signed in to change notification settings - Fork 444
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
base: main
Are you sure you want to change the base?
Conversation
Removes all tserver lock entries when a group of tservers is stopped or killed.
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
$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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$accumulo_cmd org.apache.accumulo.server.util.ZooZap -manager -tservers -compactors -sservers | |
"$accumulo_cmd" org.apache.accumulo.server.util.ZooZap -manager -tservers -compactors -sservers |
Removes all tserver lock entries when a group of tservers is stopped or killed.
Requires #5174 to be merged in beforehand.
Closes #5178