Hi Alexander, Bertrand, Xuneng, Thanks for seeing the failure. Our team also recognized but could not find the reason.
> Yeah, it looks like there is a race condition here. I think we should check if > the insertion timeline has already been set (like the walsummarizer is doing). Sorry for stupid question; I tried to reproduce the failure but could not, see attached. IIUC, the issue can happen if the walsender must read the WAL record generated after the promotion but the timeline could not be updated. However, I think logical_read_xlog_page() is called after the new WAL records are generated, i.e., am_cascading_walsender has already been false at that time. So not sure where is the race? Best regards, Hayato Kuroda FUJITSU LIMITED
0001-WIP-try-reproducing-the-race-condition-for-promotion.patch
Description: 0001-WIP-try-reproducing-the-race-condition-for-promotion.patch
