Skip to content

transaction/2 Bus Error in Pessimistic Mode #27

@koudelka

Description

@koudelka

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions