-
Notifications
You must be signed in to change notification settings - Fork 298
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
Manual compaction returns error if auto-compact is already running #1192
Comments
Manual compaction isn't necessary with ForestDB, but of course it should still work. The error is |
Aha, here's a note from the doc-comment for
So it sounds like ForestDB's auto-compact was already in progress when the manual compact was requested. To fix this, we can either (a) ignore that error code, or (b) handle it by waiting for the background compaction to complete before returning. |
(To be specific, this should be fixed in CBForest itself.) |
-compact shouldn't return an error if it's called while there's already a background auto-compact in progress. Fixes #1192
Merged to dev branch; closing. |
Found on build 1.2.1-10
Sync Gateway: 1.2.1.4
Using Mac OS-X (el-capitan) liteserv client
Steps:
Test script line: https://github.com/couchbaselabs/sync-gateway-tests/blob/master/tests/cbl-database.js#L217
Get the following warnings:
https://gist.github.com/ashvindersingh/f884882f8fb7595da79304aae5409541#file-forestdb_cbl_database-js-logs-L42
https://gist.github.com/ashvindersingh/f884882f8fb7595da79304aae5409541#file-forestdb_cbl_database-js-logs-L72
The text was updated successfully, but these errors were encountered: