Skip to content

qa/tasks: Checking for kafka cleanup - #43995

Merged
yuvalif merged 1 commit into
ceph:masterfrom
TRYTOBE8TME:wip-rgw-kafka-teuth-cleanup
Jan 13, 2022
Merged

yuvalif merged 1 commit into
ceph:masterfrom
TRYTOBE8TME:wip-rgw-kafka-teuth-cleanup

Conversation

@TRYTOBE8TME

Copy link
Copy Markdown

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

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
  • Teuthology
    • Completed teuthology run
    • No teuthology test necessary (e.g., documentation)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Comment thread qa/tasks/kafka.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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...)

@cbodley

cbodley commented Dec 6, 2021

Copy link
Copy Markdown
Contributor

ping @TRYTOBE8TME

@TRYTOBE8TME
TRYTOBE8TME force-pushed the wip-rgw-kafka-teuth-cleanup branch 2 times, most recently from 3b0a226 to bf03a9b Compare December 13, 2021 16:17
@TRYTOBE8TME
TRYTOBE8TME force-pushed the wip-rgw-kafka-teuth-cleanup branch from bf03a9b to 3daffad Compare January 10, 2022 10:13
Comment thread qa/tasks/kafka.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

but please call that after you call the "stop" script

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yeah thanks, I'll check it out

@TRYTOBE8TME
TRYTOBE8TME force-pushed the wip-rgw-kafka-teuth-cleanup branch 8 times, most recently from a04cbd1 to 3b38419 Compare January 11, 2022 12:09
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]>
@TRYTOBE8TME
TRYTOBE8TME force-pushed the wip-rgw-kafka-teuth-cleanup branch from 3b38419 to 6135747 Compare January 11, 2022 15:46
@yuvalif
yuvalif self-requested a review January 11, 2022 17:16
@yuvalif
yuvalif merged commit b709091 into ceph:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants