heikomat opened a new issue #772: _dbs.couch keeps growing when purging -> compacting -> recreating DBs URL: https://github.com/apache/couchdb/issues/772 The file `var/lib/couchdb/_dbs.couch` always keeps growing, it never shrinks, even when purging and compacting databases. Last time i left my application alone for three weeks, and the `_dbs.couch` grew to 37 GB. Fauxten showed, that the CouchDB only contains up to 60 Documents, but this file still keeps growing, until it fills all the space available ## Expected Behavior When purging + compacting a database, it should free up disk space ## Current Behavior no matter what i try, the `_dbs.couch` never shrinks in size ## Steps to Reproduce 1. create a database and put some documents into it 2. purge that database 3. create a new database, with the same name and put some documents into it 4. purge that database 5. rinse and repeat (a lot of times) from time to time, try compacting that database to free up disk space. this didn't work for me ## Context - At any given moment, my CouchDB has at max 4 Databases with a total of about 60 documents - my node application [purges](http://docs.couchdb.org/en/2.0.0/api/database/misc.html#db-purge) (using [pouchdbs destroy](https://pouchdb.com/guides/compact-and-destroy.html#destroying-a?database)) and recreates these databases periodically (some of them every two seconds, others every 15 minutes) - The databases are always recreated with the newest entries - The reason for purging the databases, instead of deleting their documents is, that i'd otherwise have a huge amount of deleted documents, and my web-client can't handle syncing all these deleted documents - after a couple of weeks, the PI this was running on had no more disk space left, and the application stopped working I tried the following things: - running everything on an x86 machine (osx) - running couchdb without docker (because of [this info](https://stackoverflow.com/questions/36969395/docker-container-keeps-growing/36969502#36969502)) - using couchdb 2.1 - running compaction manually (which didn't do anything) - googling for about 3 days now The result is always the same ## Your Environment * Version used: 2.0.0 * Operating System and version (desktop or mobile): Rapsberry PI 3 with docker ([this](https://hub.docker.com/r/matthiasg/rpi-couchdb/) base image) * Link to your project: this is a private project, i unfortunately can't provide a link I asked [this question on stackoverflow](https://stackoverflow.com/questions/45826795/why-does-couchdbs-dbs-couch-keep-growing-when-purging-compacting-dbs) yesterday, and someone suggested that this sounds like a potential bug ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
