]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: fix split vs reconnect race 24188/head
authorSage Weil <sage@redhat.com>
Sat, 1 Sep 2018 20:48:37 +0000 (15:48 -0500)
committerPrashant D <pdhange@redhat.com>
Thu, 20 Sep 2018 00:01:13 +0000 (20:01 -0400)
commitba6668ed3190c8d159f09dfb09d6cdce298abf59
tree97a8d4bd5f011b9257565f58acfc027de0dd8bc2
parentc20a7a9205f3d3b9c4bc971cc578f35eeb059ed5
osdc/Objecter: fix split vs reconnect race

If we are reconnecting to an OSD, we may not have a connection established
so this feature check is completely unreliable.  If there happens to be a
split, that could mean we don't resend an op that should have been resent.

Instead, we can infer the OSD has the new behavior if require_osd_release
is luminous or later.  If not, we can look at the per-osd features in the
OSDMap.

Fixes: http://tracker.ceph.com/issues/22544
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 917fdbe5422d099902aaa08b3406efc0247ef155)
src/osdc/Objecter.cc