Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick: Ignore missed AUX_FILES_KEY when generating image layer (#5660) #5668

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

shanyp
Copy link
Contributor

@shanyp shanyp commented Oct 26, 2023

Problem

Logical replication requires new AUX_FILES_KEY which is definitely absent in existed database.
We do not have function to check if key exists in our KV storage. So I have to handle the error in list_aux_files method. But this key is also included in key space range and accessed y create_image_layer method.

Summary of changes

Check if AUX_FILES_KEY exists before including it in keyspace.


Problem

## Problem

Logical replication requires new AUX_FILES_KEY which is definitely
absent in existed database.
We do not have function to check if key exists in our KV storage.
So I have to handle the error in `list_aux_files` method.
But this key is also included in key space range and accessed y
`create_image_layer` method.

## Summary of changes

Check if AUX_FILES_KEY  exists before including it in keyspace.

---------

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
Co-authored-by: Shany Pozin <shany@neon.tech>
Co-authored-by: Arpad Müller <arpad-m@users.noreply.github.com>
@shanyp shanyp requested a review from a team as a code owner October 26, 2023 06:31
@shanyp shanyp requested review from hlinnaka and removed request for a team October 26, 2023 06:31
@shanyp shanyp enabled auto-merge October 26, 2023 06:33
@github-actions
Copy link

2340 tests run: 2224 passed, 0 failed, 116 skipped (full report)


Flaky tests (1)

Postgres 16

Code coverage (full report)

  • functions: 53.5% (8559 of 16004 functions)
  • lines: 80.9% (49749 of 61463 lines)

The comment gets automatically updated with the latest test results
0d80d6c at 2023-10-26T07:04:17.802Z :recycle:

@shanyp shanyp merged commit 1d8d200 into release Oct 26, 2023
36 of 37 checks passed
@shanyp shanyp deleted the sp/aux_files_cherry_pick branch October 26, 2023 07:08
This pull request was closed.
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.

3 participants