Project

General

Profile

Actions

Fix #4635

closed

mon: many ops expose uncommitted state

Added by Sage Weil about 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Category:
Monitor
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The prepare_update() methods are tricky because they need to make changes relative to uncommitted (pending) state. If they are a noop based on that state, they need to still wait for a commit, even though they aren't making an additional change. This isn't handled correctly in many of the OSDMonitor CLI commands... osd rm, osd crush rm to name just two.

A simple pattern that might make it easy to catch this is for a r=0 value at the end of the function to wait for a commit.


Related issues 2 (0 open2 closed)

Related to Ceph - Bug #4836: crush_ops failureResolvedSamuel Just04/26/2013

Actions
Related to Ceph - Bug #6047: mon: Assert and monitor-crash when attemting to create pool-snapshots while rbd-snapshots are in use or have been used on a poolResolvedJoao Eduardo Luis08/18/2013

Actions
Actions

Also available in: Atom PDF