Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when deleting a db in a cluster without quorum #1136

Closed
jjrodrig opened this issue Jan 31, 2018 · 0 comments
Closed

Error 500 when deleting a db in a cluster without quorum #1136

jjrodrig opened this issue Jan 31, 2018 · 0 comments
Labels

Comments

@jjrodrig
Copy link
Contributor

Expected Behavior

When deleting a database in a cluster where the quorum is not met a 202 - Acepted should be returned if at least one of the active nodes responds ok.

It is related to issue #603

Current Behavior

When an existing DB is deleted in a cluster without quorum an error 500 is returned. The deletion is done and replicated once the cluster nodes come back.

Possible Solution

The problem seems to be here

maybe_stop(W, Counters) ->

where accepted is returned only if quorum is met

Steps to Reproduce (for bugs)

  1. Setup a 3 nodes cluster
  2. Create DB - curl -X PUT "http://.../testdb"
  3. Bring 2 of them down
  4. Delete DB - curl -X DELETE "http://.../testdb"
  5. A 500 error is returned
  6. Get DB - curl "http://.../testdb"
  7. 404 - Not found is returned

Context

The current situation is not consistent with the fix for issue #603

Your Environment

  • Version used: Compiled from master
  • Browser Name and version:
  • Operating System and version (desktop or mobile): Centos 7
  • Link to your project:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants