jjrodrig commented on issue #1139: Fix for issue #1136 - Error 500 deleting DB 
without quorum
URL: https://github.com/apache/couchdb/pull/1139#issuecomment-367381444
 
 
   @rnewson I've done some more testing on the deletion with different cluster 
conditions. It seems that some .couch files keep orphaned if a database is 
deleted with one of the nodes of the cluster stopped.
   
   - Start 3-node cluster and create test db:
    ```
    ./dev/run -n 3 --with-admin-party-please
    curl -X PUT http://127.0.0.1:15984/test?q=1
    ```
   
![image](https://user-images.githubusercontent.com/1001724/36490844-8d09e798-1729-11e8-8a13-33d35cf371f2.png)
   *One .couch file is created per node*
   
   - Stop 1 node in the cluster and delete the database
    ```
   ./dev/run -n 3 --with-admin-party-please --degrade-cluster 1
   curl -X DELETE http://127.0.0.1:15984/test
    ```
   
![image](https://user-images.githubusercontent.com/1001724/36491047-179121f6-172a-11e8-9426-0674e49b4d01.png)
   *The .couch is removed and persist in the stopped node as expected*
   
   - Start the complete cluster and check if the database is deleted
    ```
   ./dev/run -n 3 --with-admin-party-please 
   curl -X HEAD http://127.0.0.1:15984/test -v
    ```
   *The database is not found but the .couch file is propagated from the 
restarted node to the rest*
   
![image](https://user-images.githubusercontent.com/1001724/36491226-85a98d7c-172a-11e8-90c5-f2f398469951.png)
   
   It seems that .couch file keeps orphaned in the system after a deletion with 
at least a node stopped. This PR does not modify this behavior. Do you think, 
this is an issue?
   
   
   
   
   
   
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to