Commit 56801f6
Stamp XLP_FIRST_IS_CONTRECORD only if we start writing with page offset.
Without this patch, on bootstrap XLP_FIRST_IS_CONTRECORD has been always put on
header of a page where WAL writing continues. This confuses WAL decoding on
safekeepers, making it think decoding starts in the middle of a record, leading
to
2022-08-12T17:48:13.816665Z ERROR {tid=37}: query handler for 'START_WAL_PUSH postgresql://no_user:@localhost:15050' failed: failed to run ReceiveWalConn
Caused by:
0: failed to process ProposerAcceptorMessage
1: invalid xlog page header: unexpected XLP_FIRST_IS_CONTRECORD at 0/2CF80001 parent 110f3ea commit 56801f6
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7874 | 7874 | | |
7875 | 7875 | | |
7876 | 7876 | | |
| 7877 | + | |
7877 | 7878 | | |
7878 | 7879 | | |
7879 | 7880 | | |
7880 | 7881 | | |
7881 | 7882 | | |
7882 | 7883 | | |
7883 | | - | |
7884 | | - | |
| 7884 | + | |
| 7885 | + | |
| 7886 | + | |
| 7887 | + | |
| 7888 | + | |
| 7889 | + | |
| 7890 | + | |
7885 | 7891 | | |
7886 | 7892 | | |
7887 | 7893 | | |
| |||
0 commit comments