Repository navigation
qa/tasks: Checking for kafka cleanup - #43995
Conversation
There was a problem hiding this comment.
maybe instead of sleep, run something like pgrep kafka in a loop, to make sure that the process is down?
same thing for the zookeeper.
(you would need to put some limit on that loop)
if the processes hangs, you can kill -9 <pid> if you figure out their pid, or just killall java (hoping there are no other java processes running on that machine...)
|
ping @TRYTOBE8TME |
3b0a226 to
bf03a9b
Compare
bf03a9b to
3daffad
Compare
There was a problem hiding this comment.
i think there might be a more efficient command to do that. look here: https://man7.org/linux/man-pages/man1/pgrep.1.html
something like: pkill -f zookeeper.properties || :
this would just kill any command that has "zookeeper.properties" in its commandline
use the || : part to make sure that you always return zero - even if pkill does not find a matching process
There was a problem hiding this comment.
but please call that after you call the "stop" script
There was a problem hiding this comment.
yeah thanks, I'll check it out
a04cbd1 to
3b38419
Compare
Adding a sleep after running ./kafka-server-stop.sh and ./zookeeper-server-stop.sh scripts so that nothing gets logged into the kafka logs after the sleep time. And finally killing the process. This resolves: https://tracker.ceph.com/issues/53220 Signed-off-by: Kalpesh Pandya <[email protected]>
3b38419 to
6135747
Compare
Adding a sleep after running ./kafka-server-stop.sh script so that nothing gets
logged into the kafka logs after the sleep time.
This might resolve: https://tracker.ceph.com/issues/53220
Signed-off-by: Kalpesh Pandya [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox