Assertion failed in rope.c

We are using libcouchbase - 3.3.2 C SDK to do Couchbase operations for our C++ application. Recently, we started facing an assert failure when trying to remove something from a bucket.

/builddir/build/BUILD/libcouchbase-3.3.2/src/rdb/rope.c:114: seg_consumed: Assertion nr <= seg->nused' failed.

This causes the application to fail and the container where it is running, to restart. We noticed that, from the logs, that OnStore callback is invoked when this assert fails. This is not happening most of the times and when remove works fine, OnRemove callback is invoked as it should happen.

Can someone please point me in the right direction on how to debug this issue and try to find out the root cause? Thanks in advance.

I am afraid I haven’t provided much details on the environment here, but please comment below if anyone needs more details.

If you open an ticket at issues.couchbase.com, someone can investigate. A reproducer would be ideal. I peeked in the code and it looks like the only place this can occur is in rope_consolidation. But I don’t see how.

Thank you for your reply.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.