Re: Possible crash on standby

2022-09-09 Thread Nathan Bossart
On Fri, Sep 09, 2022 at 10:51:10PM +0530, Bharath Rupireddy wrote: > I think it is a duplicate of [1]. I have tested the above use-case > with the patch at [1] and it fixes the issue. I added this thread to the existing commitfest entry. Thanks for pointing this out. https://commitfest.p

Re: Possible crash on standby

2022-09-09 Thread Bharath Rupireddy
On Fri, Sep 9, 2022 at 2:00 PM Kyotaro Horiguchi wrote: > > Hello. > > While I played with some patch, I met an assertion failure. > > #2 0x00b350e0 in ExceptionalCondition ( > conditionName=0xbd8970 "!IsInstallXLogFileSegmentActive()", > errorType=0xbd6e11 "FailedAssertion", fil

Re: Possible crash on standby

2022-09-09 Thread Nathan Bossart
On Fri, Sep 09, 2022 at 05:29:49PM +0900, Kyotaro Horiguchi wrote: > This is because WaitForWALToBecomeAvailable doesn't call > XLogSHutdownWalRcv() when walreceiver has been stopped before we reach > the WalRcvStreaming() call cited above. But we need to set > InstasllXLogFileSegmentActive to fals

Possible crash on standby

2022-09-09 Thread Kyotaro Horiguchi
Hello. While I played with some patch, I met an assertion failure. #2 0x00b350e0 in ExceptionalCondition ( conditionName=0xbd8970 "!IsInstallXLogFileSegmentActive()", errorType=0xbd6e11 "FailedAssertion", fileName=0xbd6f28 "xlogrecovery.c", lineNumber=4190) at assert.c:69