You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/02/09 10:51:36 UTC

[GitHub] jjrodrig opened a new issue #1156: Tests for db,doc and attachment operations with different quorum situations

jjrodrig opened a new issue #1156: Tests for db,doc and attachment operations with different quorum situations
URL: https://github.com/apache/couchdb/issues/1156
 
 
   ## Expected Behavior
   - Have a uniform response status code when the quorum is not met. 202 - Accepted
   - Have a uniform managemente of the W parameter specified at the DB creation time
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   I've been doing some testing that checks if the db, docs and attachment operation are returning the proper http status code depending on the cluster quorum conditions. I hope this can help.
   
   I've tested in the following scenarios:
   
   **Test in a 3-node cluster with only 1 node up**
   - DB created with default write quorum (quorum is not met)
   - DB created with overridden write quorum, param W=1 (quorum is met)
   
   This table shows the result
   ![image](https://user-images.githubusercontent.com/1001724/36021092-0b421666-0d85-11e8-8fa2-cc414269880f.png)
   
   **Test in a 3-node cluster with 2 nodes up**
   - DB created with default write quorum (quorum is  met)
   - DB created with overridden write quorum, param W=3 (quorum is not met)
   
   This table shows the result
   ![image](https://user-images.githubusercontent.com/1001724/36021348-cf29ced4-0d85-11e8-8f0f-e40951efffa6.png)
   
   It shows an uneven behaviour between operations:
   
    - Delete DB is producing error when quorum is not met (Issue #1136)
    - Create and Delete DB are not managing overridden quorum
    - Document operations are ok except copy operation which is not managing overridden quorum
    - Attachment operations are not managing overridden quorum
    - Attachment deletion is not considering default quorum
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
    - For Error 500 during DB deletion is fixed by #1139
   
   ## Steps to Reproduce (for bugs)
   I'll link with this issue a PR that contains the test cases I've added for the tasks test-cluster-with-quorum/test-cluster-without-quorum
   
   ## Context
   Finding consistency in the HTTP API responses
   
   ## Your Environment
   I've tested compiling the current master
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services