obi458 opened a new issue #1181: Race in is_idle URL: https://github.com/apache/couchdb/issues/1181 There is are race in is_idle and couch_server:open Example: ``` % We start with **one** Process(M) monitored file(fd)! % open/ create db case gen_server:call(couch_server, {open, DbName, Options}, Timeout) of ###### time for race begins here % Now M is gone here, therefore no monitor at all! % now couch_file check is_idle, we have no monitor and the file will be closed!!!!!!!!! {ok, Db0} -> {ok, Db1} = couch_db:incref(Db0), %<- monitor, but to late! couch_db:set_user_ctx(Db1, Ctx); ..... ``` is_idle function needs to redesigned!
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services