Skip to content

osdc/Journaler: do not call onsafe->complete() if onsafe is 0#36777

Merged
batrick merged 1 commit intoceph:masterfrom
lxbsz:osdc
Aug 31, 2020
Merged

osdc/Journaler: do not call onsafe->complete() if onsafe is 0#36777
batrick merged 1 commit intoceph:masterfrom
lxbsz:osdc

Conversation

@lxbsz
Copy link
Copy Markdown
Member

@lxbsz lxbsz commented Aug 25, 2020

Fixes: https://tracker.ceph.com/issues/47125
Signed-off-by: Xiubo Li xiubli@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@lxbsz lxbsz requested review from batrick and ukernel and removed request for ukernel August 25, 2020 04:36
@lxbsz lxbsz requested a review from a team August 25, 2020 05:57
@batrick
Copy link
Copy Markdown
Member

batrick commented Aug 25, 2020

How did you find this?

@lxbsz
Copy link
Copy Markdown
Member Author

lxbsz commented Aug 26, 2020

How did you find this?

Locally I have some notes about the issues that I have hit before which have no any log or clue. As I remembered when I was fixing some kclient bugs which I need to reboot the MDS daemon frequently, and hit a crash once. And yesterday I was trying to figuring out the possible reasons by reading the journal log code.

And there is on case that could reproduce it by running the following steps:

1, Keep running the command $ ./bin/ceph daemon mds.b flush journal in loop in on terminal.
2, Try to stop the mds.b daemon in another terminal.

The flush journal will finally call the journaler->flush(), with onsafe = 0 as default.

And also there are other cases will hit it.

@batrick
Copy link
Copy Markdown
Member

batrick commented Aug 31, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants