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

CBG-3911 Recreate collections after tearing down databases #6809

Merged
merged 2 commits into from
May 8, 2024

Conversation

torcolvin
Copy link
Collaborator

@torcolvin torcolvin commented May 7, 2024

This avoids an intentional testing of using a database on a collection that has been deleted.

Change CreateDataStore/DropDataStore to only work when the bucket is open. This matches the rosmar behavior. I'm not sure why gocb.Bucket.Collections() is able to return a connection when the bucket is closed. The bucket does seem to be actually closed.

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Integration Tests

This avoids an intentional testing of using a database on a collection
that has been deleted.

Change CreateDataStore/DropDataStore to only work when the bucket is open. This matches the rosmar behavior. I'm not sure why gocb.Bucket.Collections() is able to return a connection when the bucket is closed. The bucket does seem to be actually closed.
@torcolvin torcolvin requested a review from adamcfraser May 7, 2024 17:40
@torcolvin torcolvin marked this pull request as ready for review May 7, 2024 17:40
@torcolvin torcolvin changed the title Recreate collections after tearing down databases CBG-3911 Recreate collections after tearing down databases May 7, 2024
@adamcfraser adamcfraser merged commit eaf0f58 into main May 8, 2024
17 checks passed
@adamcfraser adamcfraser deleted the fix-dropDataStore branch May 8, 2024 20:59
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.

2 participants