Skip to content

Conversation

@CarlSchwan
Copy link
Member

Summary

Otherwise, we call doesBucketExist all the time which does a network request to the S3 server adding some non-trivial latency when creating a S3 connection object.

Checklist

Otherwise, we call doesBucketExist all the time which does a network
request to the S3 server adding some non-trivial latency when creating a
S3 connection object.

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
@CarlSchwan CarlSchwan added this to the Nextcloud 33 milestone Nov 12, 2025
@CarlSchwan CarlSchwan self-assigned this Nov 12, 2025
@CarlSchwan CarlSchwan requested a review from a team as a code owner November 12, 2025 13:17
@CarlSchwan CarlSchwan requested review from Altahrim, ArtificialOwl, come-nc and yemkareems and removed request for a team November 12, 2025 13:17
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Nov 12, 2025
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

I do not see any TTL for the caching, how long is it?
Should we reset the cache on failed write/read or something?

Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
Copy link
Member Author

I do not see any TTL for the caching, how long is it?

The default, so one day.

Should we reset the cache on failed write/read or something?

If the admin delete the bucket or the bucket become unavailable, I don't think this is a recoverable error and we will simply return a 500 error.

@AndyScherzinger AndyScherzinger merged commit 9e2f07b into master Nov 24, 2025
196 of 207 checks passed
@AndyScherzinger AndyScherzinger deleted the carl/cache-bucket-exists branch November 24, 2025 11:13
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants