You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Today, I decided to integrate buntdb via interfaces ( alongside boltdb ) as both libraries are very similar. When running the same code using buntdb, sometimes it generates a deadlock and gets stuck (probably the locking mechanism of buntdb). I want to say that I am running the same exact code using boltdb and I never noticed any deadlock using boltdb.
LE: Could it be because the string -> []byte cast? As keys and values are binary data casted as strings?
LE2: Tested it again. Buntdb generates deadlock. Same code running with boltdb no deadlock spotted.
The text was updated successfully, but these errors were encountered:
Today, I also noticed a deadlock.
I was starting a read / write transaction (update) enclosed within a read-only transaction (view). Silly me running untested code.
Stumbled across this issue and thought this info might be interesting for other users.
Cheers!
Hi. Today, I decided to integrate buntdb via interfaces ( alongside boltdb ) as both libraries are very similar. When running the same code using buntdb, sometimes it generates a deadlock and gets stuck (probably the locking mechanism of buntdb). I want to say that I am running the same exact code using boltdb and I never noticed any deadlock using boltdb.
You can check both databases integrations via an interface https://github.com/PandoraPay/go-pandora-pay/tree/main/store/store-db
LE: Could it be because the string -> []byte cast? As keys and values are binary data casted as strings?
LE2: Tested it again. Buntdb generates deadlock. Same code running with boltdb no deadlock spotted.
The text was updated successfully, but these errors were encountered: