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

cleanup.sh errors out if ZooKeeper not running #31

Open
gerlowskija opened this issue Dec 9, 2022 · 5 comments
Open

cleanup.sh errors out if ZooKeeper not running #31

gerlowskija opened this issue Dec 9, 2022 · 5 comments

Comments

@gerlowskija
Copy link

A line towards the end of cleanup.sh causes the script to error out if no ZooKeeper process is running on the box:

$ ./cleanup.sh
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

...which comes from the script command:

kill -9 `jps | grep QuorumPeerMain| cut -f 1 -d " "`

Not a major issue, but it'd be a nicer experience if we made this 'kill' command dependent on the jps/grep sub-shell actually producing a pid to terminate.

@gerlowskija
Copy link
Author

gerlowskija commented Dec 9, 2022

I noticed this issue on branch ishan/repeatable-jenkins (as of 1d1a362). I went to go open a PR just now against 'master', but noticed that cleanup.sh is drastically different on that branch and doesn't seem to have the same problem.

Is it worth opening PRs against i/r-j, or should I just close this ticket out since the problem isn't on master? What is i/r-j exactly: a feature branch that aims to merge to 'master' eventually? a long-lived or permanent branch used to integrate with CI? something else?

@gerlowskija
Copy link
Author

I found a few other small bugs in code specific to i/r-j (the most signficant of which is that the startup + recovery computed for restart-solr-node tasks is incorrect). Can open PRs for them as well, once I get a little clarification on what the development workflow is here. (i.e. Is i/r-j just a personal branch that @chatman has? Is it a feature branch that's worth fixing bugs on? etc.)

@chatman
Copy link
Collaborator

chatman commented Dec 11, 2022 via email

@gerlowskija
Copy link
Author

No worries, and hope your wrist heals up.

Don't rush getting back to work for my sake - I've got the fixes locally so I'm fine. I just wanted to offer them upstream if the intention is that the stuff on ishan/repeatable-jenkins is going to be around for some time or get merged into main, or whatever.

@chatman
Copy link
Collaborator

chatman commented Jan 3, 2023

Is it a feature branch that's worth fixing bugs on? etc.)

Yes. It will be merged to main/master soon. It is WIP work on the following PR:
#30

Thanks for the startup time calculation bug, fixed it. Feel free to commit directly to that branch, or raise PR against it.

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

No branches or pull requests

2 participants