Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andr-sokolov
Copy link

Fix replacing of filtered WAL record with no-op

GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.
If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.
@andr-sokolov andr-sokolov marked this pull request as ready for review February 26, 2025 12:42
Copy link

@KnightMurloc KnightMurloc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andr-sokolov andr-sokolov merged commit 011094a into 2.52-ci Feb 28, 2025
26 of 30 checks passed
@Stolb27 Stolb27 deleted the ADBM-2135-ci branch August 1, 2025 14:21
KnightMurloc pushed a commit that referenced this pull request Aug 28, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
KnightMurloc pushed a commit that referenced this pull request Sep 1, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
KnightMurloc pushed a commit that referenced this pull request Sep 5, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
KnightMurloc pushed a commit that referenced this pull request Sep 15, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
KnightMurloc pushed a commit that referenced this pull request Sep 16, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
KnightMurloc pushed a commit that referenced this pull request Sep 18, 2025
GPDB does not expect backup blocks in records whose resource manager is XLOG, so
the https://github.com/arenadata/gpdb/blob/1b44caf6b58a8d60e4b0630a44d1c031cf739eae/src/backend/access/transam/xlog.c#L10439
assert was triggered in the case when a record with backup blocks was filtered
out.

If the initial record has backup blocks, clear their flags in the xl_info field
and increase xl_len to treat the backup blocks as a resource manager specific
data. The contents of resource manager specific data does not matter if the
record is no-op.

Ticket: ADBM-2135
(cherry picked from commit 011094a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants