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

fix: max wait time on dynamodb #2730

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

vanhtuan0409
Copy link
Contributor

@vanhtuan0409 vanhtuan0409 commented Oct 18, 2024

What type of PR is this?

bug fix

Which issue does this PR fix:

Fix zot unable to create dynamodb table. Upon starting zot with cacheDriver configured to dynamodb. Zot will panic with error exceeded max wait time for TableExists waiter.

Dynamodb table is successfully created but not seeded with Zot version

What does this PR do / Why do we need it:

Zot was unable to wait for dynamodb table to be created. This was due to maxWaitTime set too low. More to be reference on AWS SDK issue aws/aws-sdk-go-v2#2551

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

no

Does this PR introduce any user-facing change?:

no

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.12%. Comparing base (6471bed) to head (122fa0a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2730      +/-   ##
==========================================
- Coverage   92.72%   92.12%   -0.61%     
==========================================
  Files         169      169              
  Lines       22563    30017    +7454     
==========================================
+ Hits        20922    27652    +6730     
- Misses       1024     1748     +724     
  Partials      617      617              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rchincha
Copy link
Contributor

@vanhtuan0409 under what conditions are you seeing this failure?

@vanhtuan0409
Copy link
Contributor Author

@rchincha on fresh start. When zot need to create dynamodb table. During the creation process, zot wait for dynamodb table to be created

@andaaron
Copy link
Contributor

Hi @vanhtuan0409, please amend the commit to both gpg sign and signoff.
git commit --amend -s -S

Otherwise looks good.

@vanhtuan0409
Copy link
Contributor Author

@andaaron force pushed with signoff and signature

@andaaron andaaron merged commit edb5491 into project-zot:main Oct 20, 2024
38 of 39 checks passed
@vanhtuan0409 vanhtuan0409 deleted the fix-wait-table branch October 21, 2024 10:56
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