Commit Graph

16 Commits

Author SHA1 Message Date
Russell Brown
ee630f9726 Add gset support to DT tests 2016-11-03 09:40:34 +00:00
Zeeshan Lakhani
0c9fef2d72 - new test for HLL(set) datatypes
- update crdt cap and converge tests for hlls
- temp rebar updates for riak-client; *will update w/ correct version*
upon mergies
2016-07-28 17:54:02 -04:00
Doug Rohrer
04d54cb810 Change verify_dt_converge to use riakc_flag:enable(F) rather than disable. This will work
even in the rare and pathological case where the cluster is partitioned before all 3 nodes
have received the update. riakc_flag:disable(F) requires context, which isn’t there in the 
new map that would be created on the side of the partition with no data.
2015-02-11 10:47:35 -05:00
Russell Brown
8d2daa62e6 Update dt test for reset-remove semantic
And dopping of "add" fro Map API
2014-05-20 14:41:15 +01:00
Russell Brown
8c5ca5a3a4 Add test for context operations on riak datatypes 2014-03-19 15:57:20 +00:00
Russell Brown
77d20d7cd0 Revert "no context" work around for broken riak_dt 2014-03-19 11:30:38 +00:00
Russell Brown
2ec86af321 Changes to fix a broken CRDT map (see riak_dt#82) break this test
Well, that's not true. They break riak_kv's context operations on Maps.
This change works around that breakage by turning the context off for
the operations in this test. It is a temporary thing, when the context fix
work has been done, we'll be changing back.
2014-03-14 18:05:49 +00:00
Sean Cribbs
fa1b0c43ea Rally to restore whitespace 2013-11-25 15:45:08 -06:00
Sean Cribbs
8da363adcf Update verify_dt_converge to cover the HTTP i/f. 2013-11-25 12:53:02 -06:00
Russell Brown
c65a6dabcf Stop PB clients after test 2013-10-22 09:17:36 +01:00
Russell Brown
3a0fd5c919 Activate bucket properties in a wait_until block
Pre3 commits require bucket types to be activated. Without this patch
verify_dt_converge hangs
2013-10-07 15:35:44 +01:00
Russell Brown
d5b030cc73 Add config changes to speed handoff after heal
Set handoff concurrency higher and tick time lower so handoff
happens sooner.

Changed req params on final check to ensure we get a converged value
as soon as possible.
2013-09-20 17:39:34 +01:00
Sean Cribbs
f264848171 Use create option on all modifications in case the preflists come out strangely. 2013-09-14 13:18:50 -05:00
Sean Cribbs
6e22fbaf55 Use a wait_until when checking the value. 2013-09-13 15:08:13 -05:00
Sean Cribbs
d33d1f4688 Fix copyright date. 2013-09-13 14:43:16 -05:00
Sean Cribbs
3439e54e85 Add test for CRDT convergence.
This requires a build of Riak using:

* basho/riak_kv#650
* basho/riak_pb#52

riak_test should be built with:

* basho/riak_pb#52 (same as above)
* basho/riak-erlang-client#114

This test follows the same outline as the verify_counter_converge
test, which is to:

1. Write a new datatype into the cluster.
2. Check that the value was correctly stored, via connecting to some
   other node.
3. Partition the cluster.
4. Perform updates on both sides, verifying that the new values do not
   cross the partition.
5. Heal the cluster and show that the data converges according to the
   desired behavior.

There is still one outstanding problem with this test, in that maps
have a "reset" behavior when removing a field; namely, embedded types
would be semantically set to a value that resembles their bottom
value, but is actually higher in the partial-order/lattice. We have
decided this behavior is too surprising, especially in the case of
counters, where concurrent reset-removes would result in a
double-counting problem. See L255 for an example.
2013-09-13 12:48:42 -05:00