cbforest icon indicating copy to clipboard operation
cbforest copied to clipboard

Failed to begin transaction - com.couchbase.cbforest.Database.beginTransaction

Open sethrosetter opened this issue 9 years ago • 1 comments

Found the following issue running (https://github.com/couchbaselabs/sync-gateway-tests/blob/master/tests/cbl-revisions.js) -https://gist.github.com/sethrosetter/b00106e612f6069d33cc07e335720059#file-gistfile1-txt-L66-L118

sethrosetter avatar Apr 01 '16 02:04 sethrosetter

ForestException{domain=2, code=-39}
at com.couchbase.cbforest.Database.beginTransaction(Native Method)
at com.couchbase.lite.store.ForestDBStore.beginTransaction(ForestDBStore.java:1235)

Error -39 means the ForestDB file handle was called reentrantly:

    /**
     * DB handle is being used by another thread. Forestdb handles must not be
     * shared among multiple threads.
     */
    FDB_RESULT_HANDLE_BUSY = -39,

snej avatar Apr 20 '16 21:04 snej