Zero size DB files are created, which make CouchDB crash.
---------------------------------------------------------

                 Key: COUCHDB-647
                 URL: https://issues.apache.org/jira/browse/COUCHDB-647
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 0.9.1, 0.10
         Environment: Ubuntu Hardy
            Reporter: eric casteleijn
            Priority: Critical


Our production server crashed with the following fragment in the error log 
http://friendpaste.com/3VfsxGrH2XxvkqE3XQA4oy

It appears that this is due to a corrupted or zero size database file.

Chris Anderson suggested the attached patch to improve the logging in this case.

doppler came up with a script that reproduces the crash:

 touch 
/Applications/CouchDBX-0.10.1-R13B03-Leopard.app/Contents/Resources/couchdbx-core/couchdb/var/lib/couchdb/test.couch
 while true ; do curl -X GET http://localhost:5984/test ; done

NOTE: On the server that crashed we do not manipulate database files in any 
other way than calling the REST interface, so it is still a mystery how zero 
sized dbs get created. I will investigate by digging through the logs.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to