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-3289 handle in memory walrus databases as rosmar databases #6379

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

torcolvin
Copy link
Collaborator

@torcolvin torcolvin commented Aug 23, 2023

Handle in memory walrus databases as rosmar databases. Tests to make sure that old-style in memory databases (walrus:data), rosmar in memory (rosmar:/?mode=memory), and rosmar on disk all will work without being part of a bucket pool.

Removed a context.TODO()/context.Background() because there was always a clear calling context.

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

@torcolvin torcolvin marked this pull request as ready for review August 24, 2023 00:54
@torcolvin torcolvin requested a review from adamcfraser August 24, 2023 00:54
bbrks
bbrks previously requested changes Aug 24, 2023
rest/config.go Outdated
Comment on lines 92 to 93
// walrus:data represents in memory data store, convert this to rosmar.InMemoryURL
// but do not match walrus:///path/to/db, which is incompatible with rosmar URLs
Copy link
Member

Choose a reason for hiding this comment

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

I left a more detailed comment in Slack about this, but walrus:data is a persisted Walrus bucket, with a relative path to data (and only if that directory exists... and then it's not persisted 🙃)

@bbrks bbrks assigned torcolvin and unassigned adamcfraser Aug 24, 2023
@torcolvin torcolvin merged commit aff7f54 into master Aug 24, 2023
@torcolvin torcolvin deleted the CBG-3289 branch August 24, 2023 17:45
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