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

kv dynamodb check if table exists before we try to create #7056

Merged
merged 2 commits into from
Nov 26, 2023
Merged

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Nov 26, 2023

This is a revert of previous behaviour we had for kv Open in lakeFS - checking the table current state before creation.
In order to support running lakeFS in environment without permissions to create, checking before trying to create, will prevent errors.

Close #7059

@nopcoder nopcoder requested a review from guy-har November 26, 2023 14:34
@nopcoder nopcoder self-assigned this Nov 26, 2023
Copy link
Contributor

@guy-har guy-har left a comment

Choose a reason for hiding this comment

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

Looks good, just please document so we won't accidentally remove it again

Comment on lines 116 to 118
// Create table if not exists
success, _ := isTableExist(ctx, svc, params.TableName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please documentation explaining why we need isExist and not satisfied with the response of the create table

@nopcoder nopcoder added the include-changelog PR description should be included in next release changelog label Nov 26, 2023
@nopcoder nopcoder merged commit a5a5fc6 into master Nov 26, 2023
30 checks passed
@nopcoder nopcoder deleted the fix/kv-open branch November 26, 2023 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kv open check if table exists before creating one
2 participants