Skip to content

rbd-mirror: image replayer stop might race with instance replayer shut down#34615

Merged
trociny merged 3 commits intoceph:masterfrom
dillaman:wip-45072
Apr 19, 2020
Merged

rbd-mirror: image replayer stop might race with instance replayer shut down#34615
trociny merged 3 commits intoceph:masterfrom
dillaman:wip-45072

Conversation

@dillaman
Copy link

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

Jason Dillaman added 3 commits April 17, 2020 10:02
This wraps the functionality of starting and finishing a tracked op
into the standard context interface.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
The shut down waits for in-flight ops to complete but the
start/stop/restart operations were previously not tracked. This
could cause a potential race and crash between an image replayer
operation and the instance replayer shutting down.

Fixes: https://tracker.ceph.com/issues/45072
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman dillaman changed the title rbd-mirror: image replayer stop might race with instace replayer shut down rbd-mirror: image replayer stop might race with instance replayer shut down Apr 17, 2020
Copy link
Contributor

@trociny trociny left a comment

Choose a reason for hiding this comment

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

LGTM

@dillaman
Copy link
Author

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.

2 participants