]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-monstore-tool: use a large enough paxos/{first,last}_committed
authorKefu Chai <kchai@redhat.com>
Tue, 9 Apr 2019 14:07:02 +0000 (22:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 16 Jun 2021 02:12:10 +0000 (10:12 +0800)
commitf008a11ecf3cdaa57b5880b701e88f53cbba2c0f
tree0305a393736d98a439a9a314cef24b22d1c9a34b
parent37db19c9ba683faefd29b31d1eed94ef7e85d134
ceph-monstore-tool: use a large enough paxos/{first,last}_committed

so the rebuild paxos transaction won't be overwritten by the ones
created before recovery completes.

when the quorum is recovering, the leader will collect the paxos
transactions from peons. if the quorum accept the proposal for setting
the fingerprint, the peon will update the monitor with the paxos
transaction with a newer "last_committed" than the one created using
update_paxos() in ceph_monstore_tool.cc. the latter "last_committed" is
always 0.

so, to avoid this extra paxos proposal obsoleting the "rebuilding" paxos
transaction, we use a large enough number for {first,last}_committed.

Fixes: http://tracker.ceph.com/issues/38219
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 5475ef7843ab4021eddee60c2789b81d616383e9)
src/tools/ceph_monstore_tool.cc