You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Randall Leeds (Closed) (JIRA)" <ji...@apache.org> on 2011/12/03 22:42:40 UTC

[jira] [Closed] (COUCHDB-326) Occasional {"error":"error","reason":"eacces"} errors deleting a database on Windows

     [ https://issues.apache.org/jira/browse/COUCHDB-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Leeds closed COUCHDB-326.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

According to dch, this hasn't been reproducible since 1.0.
                
> Occasional {"error":"error","reason":"eacces"} errors deleting a database on Windows
> ------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-326
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-326
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.9
>         Environment: Windows, couch 0.9, erlang R12B 5.6.5
>            Reporter: Mark Hammond
>             Fix For: 1.0
>
>
> On Windows, occasionally you will see errors attempting to delete a database.   This manifests itself by 10-30% of the test suite failing on Windows.  If you retry the tests that failed, they will usually pass on subsequent attempts.  Running the tests individually causes them to fail roughly 10% of the time.
>  The log output shown is:
>   [debug] [<0.18650.6>] httpd 500 error response:
>    {"error":"error","reason":"eacces"}
>   [info] [<0.18650.6>] 127.0.0.1 - - 'DELETE' /test_suite_db/ 500
> A slightly snipped transcript from IRC:
> (2:58:32 PM) markh: I see a number of INFO logs "Shutting down view group server, monitored db is closing." directly before the error.  I was guessing the file may be unlink'd before one of those workers actually closes its handle?
> (2:58:54 PM) alisdair: yeah, it's probably a race condition
> (2:59:13 PM) alisdair: where the delete is tried before the fd is let go
> (2:59:26 PM) alisdair: the reader fd that is
> (2:59:32 PM) markh: yeah
> ...
> (3:11:47 PM) alisdair: i can't find an obvious deadlock
> (3:12:18 PM) alisdair: couch_server:delete explicitly waits for the db process to exit
> (3:12:23 PM) alisdair: before deleting it
> (3:15:15 PM) alisdair: i think i found the problem
> (3:15:23 PM) alisdair: but i need a windows machine to confirm
> (3:15:30 PM) alisdair: i'll look into it tomorrow

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira