]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osdc: Optimized EC pools routing bug
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 25 Jun 2025 09:26:17 +0000 (10:26 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Sun, 7 Sep 2025 23:10:41 +0000 (00:10 +0100)
commitdff0dd4222b148a5de741abd8db02c8f67ed7a89
treed06bcbbab8a0e36e1ec0e5a19536da552d5b78cd
parentfef969b0add85d6915f5616fde2cfd8ce3b702c1
osdc: Optimized EC pools routing bug

Fix bug with routing to an acting set like [None,Y,X,X]p(X)
for a 3+1 optimzed pool where osd X is representing more
than one shard. For an optimized EC pool we want it to
choose shard 3 because shard 2 is a non-primary. If we
just search the acting set for the first OSD that matches
X this will pick shard 2, so we have to convert the order
to primary's first, then find the matching OSD and then
convert this back to the normal ordering to get shard 3.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit 3310f97859109090706b84824cac2f8a6cfe6928)
src/osdc/Objecter.cc