Hello, Damien. Thanks for clearing that out. But according to your, I assume that CouchDB may run on high-loaded servers in future. That means that the only way to compact database on write-heavy systems is when using several replicated CouchDB servers. We then should stop serving requests by the specific CouchDB while others continue with replicated copies and proceed with compact.
Not sure that this is the best way, but it shall work. But on the single running copy of CouchDB it still may be a problem, I guess. Thu, 12/06/2008 at 11:24 -0700, Damien Katz (JIRA) wrote: > [ > https://issues.apache.org/jira/browse/COUCHDB-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Damien Katz closed COUCHDB-78. > ------------------------------ > > Resolution: Fixed > Fix Version/s: 0.8 > Assignee: Damien Katz > > Problem was couchdb failing to close file handles during compaction > reattempts. Fixed in revision 667188. > > Note, it is not a good idea to attempt compaction on a database is near full > capacity for its write load. The problem is the compaction process may never > catch up with the writes if they never let up, and eventually it will run out > of disk space. > > Compaction should be attempted when the write load is less than full > capacity. Read load won't affect its ability to complete however. > > > CouchDB crashed Erland > > ---------------------- > > > > Key: COUCHDB-78 > > URL: https://issues.apache.org/jira/browse/COUCHDB-78 > > Project: CouchDB > > Issue Type: Bug > > Components: Database Core > > Affects Versions: 0.8 > > Environment: Linux 2.6.25.4-30.fc9.i686 #1 SMP Wed May 21 18:12:35 > > EDT 2008 i686 i686 i386 GNU/Linux > > Reporter: Sergey Kurtsev > > Assignee: Damien Katz > > Fix For: 0.8 > > > > Attachments: erl_crash.dump > > > > > > Not sure if this is a CouchDB or Erlang bug or both. Please, forward to > > Erland team if appropriate. > > What happened: > > I've started several thousands of atomic inserts with modified sample php > > script from http://wiki.apache.org/couchdb/GettingStartedWithPhp > > In the middle of insert loop I initiated database compact from > > localhost:5984/_utils interface. > > Several thousands of inserts later CouchDB dumped the following error and > > terminated: > > [ ...similar successfull POSTs are cut 'till this point... ]
