Re: [PATCH 0/2] libceph: support pg_upmap_primary (the read balancer)
From: Alex Markuze
Date: Wed Dec 02 2026 - 08:11:13 EST
Hi Xiubo,
Your separate "don't assume the primary leads the acting set for replica
reads" patch addresses the non-leading-primary replica identity case.
Even with that patch applied first, two issues remain in this series:
When pg_temp keeps acting [A,B,C] while an upmap-primary update changes
the up set from [B,A,C] to [C,B,A], even a read correctly identified as
sent to replica B is not resent. B can discard it after advancing to the
new interval. Please resend replica reads on relevant up-set interval
changes when the acting set is unchanged.
The new incremental decoder adds a fallible allocation after the live
map's epoch has advanced. On failure it can leave an incomplete map at
the new epoch; a repeat of that epoch is ignored, and an unrelated later
incremental need not restore the missing primary. Reads and writes may
then be sent to the wrong OSD and stall. Please make incremental
application atomic, or invalidate the partial map and obtain a full map
before using it to route requests.
Thanks,
Alex