You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/06 13:17:29 UTC

[jira] [Commented] (COUCHDB-2321) It's possible to delete config section while it still has some options (UI bug)

    [ https://issues.apache.org/jira/browse/COUCHDB-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124428#comment-14124428 ] 

ASF subversion and git services commented on COUCHDB-2321:
----------------------------------------------------------

Commit db58e794f937a52b6b61c964942e56afa7d03d8b in couchdb-couch's branch refs/heads/master from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=db58e79 ]

Fix bugs with couch_proc_manager limits

This fixes the couch_proc_manager limit counting by rearranging the increment and decrements when processes are created and destroyed. It ensures that each time we remove a process from the ets table that we decrement appropriately.

For incrementing, things are a bit more complicated in that we need to increment before inserting to the table. This is so that our hard limit applies even if one of our asynchronous spawn calls is opening a new process. This is accomplished by incrementing the counter and storing the async open call information in a new ets table. If the open is successful the counter is left untouched. If the open fails then we need to decrement the counter.

This also simplifies starting waiting clients when a processes is either returned, exits, or fails to start by isolating the logic and calling it in each place as necessary.

Closes COUCHDB-2321


> It's possible to delete config section while it still has some options (UI bug)
> -------------------------------------------------------------------------------
>
>                 Key: COUCHDB-2321
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2321
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Alexander Shorin
>            Assignee: Robert Kowalski
>
> 1. Create a new section abc with option bar = baz
> 2. Add another option to section abc like boo = foo
> 3. Delete option bar. You'll see the following picture:
> http://i.imgur.com/SCKo7bk.png



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)