-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix for issue #603 - Error 500 when creating a db below quorum #1127
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
Conversation
rnewson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rebase and squash, I'm happy with this change. Thanks!
Makefile
Outdated
| endif | ||
| @rm -rf dev/lib | ||
| @dev/run -n 3 -q --with-admin-party-please \ | ||
| --enable-erlang-views --degrade-cluster 2 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
Makefile
Outdated
| -c 'startup_jitter=0' \ | ||
| 'test/javascript/run --suites "$(suites)" \ | ||
| --ignore "$(ignore_js_suites)" \ | ||
| --path test/javascript/tests-cluster/with-quorum' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
| NumOk when NumOk >= (W div 2 +1) -> | ||
| {stop, ok}; | ||
| NumOk when NumOk >= (W div 2 + 1) -> | ||
| NumOk when NumOk > 0 -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the right change.
Add degrade-cluster option for cluster testing Add tests for different cluster conditions with/without quorum Add test-cluster-with-quorum and test-cluster-without-quorum tasks
3573f3e to
a585f0b
Compare
|
+1 |
|
@jjrodrig we wanted to make it so that |
|
Ok, I'll check it. |
|
Thank you! :) |
31843dc to
2ae9fd2
Compare
|
I’m trying a new variant where the new make targets run first in |
|
@janl I've reproduced the problem in my environment. It seems that the stop after the mango test is collisioning with the start of the cluster test. I've introduced an sleep after mango tests and the check is working Also, I've noticed that the mango test do not clean up dev/lib so it can be affected by previous test executions. |
|
merged this, and filed an issue for cleaning up mango: #1134 Thanks a lot for this contribution! |
Overview
Current behaviour of DB creation in a cluster degraded situation is not consistent with the general behaviour described for document creation in the same situation.
The current behaviour for database creation in a cluster is:
The quorum is the default: Number of nodes/2 +1
This PR changes the database creation result with the following behaviour:
Testing recommendations
test/javascript/tests/reduce_builtin.js Error: {gen_server,call,[<0.2426.1>,{get_state,49},infinity]}make check apps=chttpd ignore_js_suites=reduce_builtinI didn't identify testing infrastructure for testing cluster degradation issues. So I decided to add some support for testing in different cluster conditions. Now make has two more task:
This PR can be tested in this way
Related Issues or Pull Requests
Issue #603
Checklist