couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Kocoloski (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COUCHDB-789) revs_limit reset after DB compaction
Date Tue, 08 Jun 2010 16:52:12 GMT

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

Adam Kocoloski closed COUCHDB-789.
----------------------------------

    Fix Version/s: 1.1
       Resolution: Fixed

Thanks Filipe.  I moved the getDbProperty check in the test suite after the

// compaction isn't instantaneous, loop until done
while (db.info().compact_running) {};

but otherwise committed the patch unchanged.


> revs_limit reset after DB compaction
> ------------------------------------
>
>                 Key: COUCHDB-789
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-789
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.11
>            Reporter: Filipe Manana
>             Fix For: 1.1
>
>         Attachments: revs_limit_preserved_after_db_compaction.patch
>
>
> As reported by Erick Johnson in the users mailing list, after compaction, the revs_limit
parameter is not preserved.
> Can easily be tested with:
> $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction
> {"ok":true}
> $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit -d "100"
> {"ok":true}
> $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit
> 100
> $ curl -XPOST http://erick:foobar@127.0.0.40:5984/testing-compaction/_compact
> {"ok":true}
> $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit
> 1000
> The following patch fixes it.

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


Mime
View raw message