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

transaction/2 Bus Error in Pessimistic Mode #27

Open
koudelka opened this issue Jan 7, 2024 · 1 comment
Open

transaction/2 Bus Error in Pessimistic Mode #27

koudelka opened this issue Jan 7, 2024 · 1 comment

Comments

@koudelka
Copy link

koudelka commented Jan 7, 2024

Hi friends, I'm sure I'm holding it wrong, but I'm seeing a Bus Error upon attempting to open a transaction in pessimistic mode on 27226d9.

Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Interactive Elixir (1.16.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> {:ok, db} = :rocksdb.open('abcd', [create_if_missing: true])
{:ok, #Reference<0.3067529985.887488542.124224>}
iex(2)> :rocksdb.transaction(db, [])
[1]    66041 bus error  iex -S mix

However, opening the db in optimistic mode seems to work:

iex(1)> {:ok, db, _} = :rocksdb.open_optimistic_transaction_db('abcd', [create_if_missing: true])
{:ok, #Reference<0.730962756.82182167.104348>,
 [#Reference<0.730962756.82182167.104349>]}
iex(2)> :rocksdb.transaction(db, [])
{:ok, #Reference<0.730962756.82182145.106604>}

Versions:

❯ asdf current
elixir          1.16.0-otp-26   /Users/mikes/.tool-versions
erlang          26.1.2          /Users/mikes/.tool-versions
❯ uname -a
Darwin dax.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

(MacOS 13.5.1 ARM M2)

Thanks for maintaining the library, I really appreciate it! :)

@thalesmg
Copy link
Contributor

thalesmg commented Jan 9, 2024

Hi @koudelka !

Thanks for the report. However, please note that this is a fork of erlang-rocksdb. 😅

Upstream is here: https://gitlab.com/barrel-db/erlang-rocksdb

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

No branches or pull requests

2 participants