Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

~ColumnFamilySet(): Assertion `last_ref' failed #70

Open

Description

@TomGoBravo

I'm having trouble getting python-rocksdb running. I followed https://github.com/twmht/python-rocksdb#quick-install with the small change of git checkout v6.4.6 to get a stable rocksdb release. When a run a script that db.puts about 700k entries with a total key+value bytes of < 1GB it exits with

python3: /code/rocksdb/db/column_family.cc:1284: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion `last_ref' failed.
Aborted

I first ran into this problem on my laptop running gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 and Python 3.6.8. I reproduced it in a container on a server running gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4 and Python 3.6.8.

Activity

  1. TomGoBravo commented on Nov 5, 2019

    @TomGoBravo
    Author

    I removed the rocksdb libs v6, checked out v5.17.2 (suggested by https://www.facebook.com/groups/rocksdb.dev/permalink/2095597370538766/?comment_id=2095916410506862&reply_comment_id=2095945887170581) then cmake .. ; make ; make install the library. Then force reinstalled python-rocksdb master with service_venv pip3 install --upgrade --no-deps --force-reinstall . to make sure it was linked to the newly install rocksdb library and still get assertion failure:

    python3: /code/rocksdb/db/column_family.cc:1238: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion `last_ref' failed.
    Aborted
    
  2. threadfly commented on May 10, 2022

    @threadfly

    Hi, is it resolved?

  3. linas commented on Jul 31, 2022

    @linas

    Lots of users of rocks (including ceph and mariadb) hit this bug in 2019 and there was some claim that its a rocks bug. (that I guess was resolved in 2019, but I can't find the fix).

    Well, its come back in Debian testing: I have old stable code which I compiled on Debian testing for the first time ever, and am hitting this last_ref error message. ./db/column_family.cc:1494: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion last_ref' failed. This is in librocksdb-dev/testing,now 7.2.2-5 amd64

    I know this is the wrong place to report this; I'm just leaving a bread-crumb trail until I figure out where it goes. (Maybe to the rock git repo, and maybe to debian testing?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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