Thread: BUG #15398: invalid contrecord length 861 at 159E/A6FFFC40

BUG #15398: invalid contrecord length 861 at 159E/A6FFFC40

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      15398
Logged by:          Timur Luchkin
Email address:      timur.luchkin@gmail.com
PostgreSQL version: 10.4
Operating system:   Ubuntu 16.04.4 LTS
Description:

Hi. 
We are getting this kind of error in WAL based replica's log after the
master DB was down due to no space left issue. 
Disk space was already added and master up'n'running (including its
synchronous streaming based replica), but offsite WAL replica can't start
due to mention error. 
We can't recreate it using pg_basebackup due to slow network and huge DB
size. Can we fix this problem to continue use WAL logs?

More details:
<2018-09-25 08:07:19 UTC--- [app:,pid:19517,00000]>LOG:  restored log file
"000000010000159E000000A6" from archive
<2018-09-25 08:07:23 UTC--- [app:,pid:19517,00000]>LOG:  restored log file
"000000010000159E000000A7" from archive
<2018-09-25 08:07:23 UTC--- [app:,pid:19517,00000]>LOG:  invalid contrecord
length 861 at 159E/A6FFFC40