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

[BUG] KV two differend boltdb buckets in one storage #719

Closed
SerafimArts opened this issue Jun 12, 2021 · 1 comment · Fixed by #724
Closed

[BUG] KV two differend boltdb buckets in one storage #719

SerafimArts opened this issue Jun 12, 2021 · 1 comment · Fixed by #724
Assignees
Labels
B-bug Bug: bug, exception F-need-verification
Milestone

Comments

@SerafimArts
Copy link
Contributor

SerafimArts commented Jun 12, 2021

I tried this code:

kv:
  first:
    driver: boltdb
    interval: 60
    permissions: 0777
    file: "rr.db"
    bucket: "A"

  second:
    driver: boltdb
    interval: 60
    permissions: 0777
    file: "rr.db"
    bucket: "B"

I expected to see this happen: All OK

Instead, this happened: Nothing (hangs on initialization)

The version of RR used: 2.3.0 (stable)

Errortrace, Backtrace or Panictrace

*empty*
@SerafimArts SerafimArts added B-bug Bug: bug, exception F-need-verification labels Jun 12, 2021
@rustatian
Copy link
Member

rustatian commented Jun 14, 2021

From the bbolt documentation (https://github.com/etcd-io/bbolt#opening-a-database):

Please note that Bolt obtains a file lock on the data file so multiple processes cannot open the same database at the same time. Opening an already open Bolt database will cause it to hang until the other process closes it. 

I can only expose some timeout to wait for the boltdb connection in the related configuration section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: bug, exception F-need-verification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants