-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
acceptance: introduce partition nemesis in acceptance tests #4712
Conversation
tbg
commented
Feb 29, 2016
•
edited
Loading
edited
5c6f476
to
4abbb6e
Compare
Review status: 0 of 11 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. acceptance/partition.go, line 59 [r1] (raw file): acceptance/partition.go, line 99 [r1] (raw file): acceptance/iptables/iptables.go, line 18 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 11 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. acceptance/partition.go, line 59 [r1] (raw file): acceptance/partition.go, line 99 [r1] (raw file): acceptance/iptables/iptables.go, line 18 [r1] (raw file): Comments from the review on Reviewable.io |
In preparation for cockroachdb#4712.
In preparation for cockroachdb#4712.
7b0434d
to
62ce786
Compare
Looks like this just broke with Docker 1.10 (on CircleCI) since privileged mode is allowed no more. I opened a support request with CircleCI to see whether anything can be done about that. |
Resuscitated! PTAL. Doesn't run on CircleCI but fit for nightlies and local testing. I'm planning to make this work against GCE/AWS (or at least try to), which shouldn't be so bad. |
c324934
to
b0c3f91
Compare
Reviewed 4 of 11 files at r1, 1 of 5 files at r2, 6 of 10 files at r5, 2 of 2 files at r7. acceptance/chaos_test.go, line 307 [r7] (raw file): acceptance/cluster/cluster.go, line 39 [r7] (raw file): acceptance/cluster/localcluster.go, line 36 [r7] (raw file): acceptance/cluster/localcluster.go, line 384 [r7] (raw file): acceptance/cluster/localcluster.go, line 737 [r7] (raw file): acceptance/cluster/localcluster.go, line 811 [r7] (raw file): acceptance/cluster/localcluster.go, line 826 [r7] (raw file): acceptance/iptables/iptables.go, line 15 [r7] (raw file): Comments from Reviewable |
Reviewed 8 of 10 files at r5, 2 of 2 files at r7. acceptance/partition_test.go, line 1 [r7] (raw file): acceptance/iptables/iptables.go, line 15 [r1] (raw file): acceptance/iptables/iptables.go, line 34 [r7] (raw file): Comments from Reviewable |
Review status: 0 of 10 files reviewed at latest revision, 14 unresolved discussions. acceptance/chaos_test.go, line 307 [r7] (raw file): acceptance/partition_test.go, line 1 [r7] (raw file): acceptance/cluster/cluster.go, line 39 [r7] (raw file): acceptance/cluster/localcluster.go, line 36 [r7] (raw file): acceptance/cluster/localcluster.go, line 384 [r7] (raw file): acceptance/cluster/localcluster.go, line 737 [r7] (raw file): acceptance/cluster/localcluster.go, line 811 [r7] (raw file): acceptance/cluster/localcluster.go, line 826 [r7] (raw file): acceptance/iptables/iptables.go, line 15 [r1] (raw file): acceptance/iptables/iptables.go, line 15 [r7] (raw file): acceptance/iptables/iptables.go, line 34 [r7] (raw file):
Comments from Reviewable |
Review status: 0 of 10 files reviewed at latest revision, 14 unresolved discussions, some commit checks failed. acceptance/partition_test.go, line 1 [r7] (raw file): acceptance/iptables/iptables.go, line 15 [r1] (raw file): Comments from Reviewable |
Review status: 0 of 10 files reviewed at latest revision, 13 unresolved discussions. acceptance/partition_test.go, line 1 [r7] (raw file): Comments from Reviewable |
Reviewed 7 of 10 files at r8, 1 of 1 files at r9. acceptance/cluster/localcluster.go, line 36 [r7] (raw file): acceptance/cluster/localcluster.go, line 737 [r7] (raw file): acceptance/cluster/localcluster.go, line 285 [r9] (raw file): Comments from Reviewable |
Review status: 5 of 12 files reviewed at latest revision, 8 unresolved discussions. acceptance/cluster/localcluster.go, line 36 [r7] (raw file): acceptance/cluster/localcluster.go, line 737 [r7] (raw file): acceptance/cluster/localcluster.go, line 285 [r9] (raw file): Comments from Reviewable |
Reviewed 7 of 11 files at r1, 4 of 5 files at r2, 5 of 5 files at r3, 11 of 11 files at r4, 4 of 10 files at r5, 2 of 10 files at r8, 5 of 6 files at r10. acceptance/chaos_test.go, line 369 [r10] (raw file): aren't 3 nodes enough? also include the number in the skip message acceptance/cluster/localcluster.go, line 66 [r10] (raw file): Comments from Reviewable |
Review status: 8 of 12 files reviewed at latest revision, 5 unresolved discussions. acceptance/chaos_test.go, line 369 [r10] (raw file): acceptance/cluster/localcluster.go, line 66 [r10] (raw file): Comments from Reviewable |
Reviewed 2 of 2 files at r11. Comments from Reviewable |
Reviewed 1 of 13 files at r12, 10 of 12 files at r13. Makefile, line 189 [r13] (raw file): Makefile, line 191 [r13] (raw file): Comments from Reviewable |
Review status: 10 of 13 files reviewed at latest revision, 5 unresolved discussions. Makefile, line 189 [r13] (raw file): Makefile, line 191 [r13] (raw file): Comments from Reviewable |
Reviewed 1 of 1 files at r14. Makefile, line 189 [r13] (raw file): Comments from Reviewable |
Reviewed 2 of 12 files at r13. acceptance/partition.go, line 58 [r14] (raw file):
acceptance/partition.go, line 97 [r14] (raw file): acceptance/partition_test.go, line 32 [r14] (raw file): acceptance/partition_test.go, line 52 [r14] (raw file): Comments from Reviewable |
Review status: 0 of 13 files reviewed at latest revision, 7 unresolved discussions. acceptance/partition.go, line 58 [r14] (raw file): acceptance/partition.go, line 97 [r14] (raw file): acceptance/partition_test.go, line 32 [r14] (raw file): acceptance/partition_test.go, line 52 [r14] (raw file): Comments from Reviewable |
c55c73b
to
6331e75
Compare
Reviewed 13 of 13 files at r16. Comments from Reviewable |
It was not correctly excluding files for os.Getenv, for example it would complain about `os.Getenv` in `acceptance/util_test.go` which should be excluded.
This nemesis allows node partitions to be set up during tests. Partitions can be bidirectional, but also one-way (i.e. one node can initiate connections to another, but not the other way around). The latter likely isn't too interesting with the change to streaming RPCs, but it should be possible to introduce interesting phenomena nevertheless. Wrote a bank test with the nemesis. I found the existing bank test too complicated for its own sake, so I re-wrote it. The plan is to make it the more advanced bank example with constraints which would fail under SNAPSHOT isolation (i.e. transferring money from A and B to C and D under the constraint that A+B >= 0).