antirez
1255460c96
Test: handle new osx 'leaks' error.
...
Sometimes the process is still there but no longer in a state that can
be checked (after being killed). This used to happen after a call to
SHUTDOWN NOSAVE in the scripting unit, causing a false positive.
2014-05-07 16:12:38 +02:00
antirez
402b1170bc
Test: cluster/base, check that we can write/read from cluster.
2014-05-05 09:37:39 +02:00
antirez
f188fa4a15
Cluster: Tcl cluster client: handle MOVED/ASK.
2014-05-05 09:37:39 +02:00
antirez
5069e0b9cd
Cluster: Tcl cluster client: slots-nodes map and close method.
...
Now the client is able to actually run commands in a Redis Cluster
assuming the slots->nodes map is stable.
2014-05-05 09:37:39 +02:00
antirez
9fe28612b9
Cluster: Tcl cluster client: build nodes representation.
2014-05-05 09:37:39 +02:00
antirez
a5b7065bdf
Cluster: Tcl cluster client: get nodes description.
2014-05-05 09:37:39 +02:00
antirez
1826167519
Cluster: Tcl cluster client key -> hashslot.
2014-05-05 09:37:39 +02:00
antirez
43570e9319
Cluster test: Tcl cluster library initial skeleton.
2014-05-05 09:37:39 +02:00
antirez
4ca7c5bcde
Cluster test: check for state=ok after slot allocation.
2014-05-05 09:37:39 +02:00
antirez
6fc17adcd8
Cluster test: slots allocation.
2014-05-05 09:37:39 +02:00
antirez
0906ca8a3e
Cluster test: use 20 instances.
...
This makes tests a bit slower, but it is better to test things at a
decent scale instead of using just a few nodes, and for a few tests we
actually need so many nodes.
2014-05-05 09:37:39 +02:00
antirez
402815cc3f
Cluster / Sentinel test: instances count moved to run.tcl.
2014-05-05 09:37:39 +02:00
antirez
6e60e2467b
Cluster test: config epoch conflict resolution.
2014-05-05 09:37:39 +02:00
antirez
b1f6f2ace0
Cluster test: auto-discovery to form full mesh.
2014-05-05 09:37:39 +02:00
antirez
e244bee60c
Cluster test: check that every node has a different ID.
2014-05-05 09:37:39 +02:00
antirez
6b4e9558bd
Cluster test: basic cluster nodes info access functions.
2014-05-05 09:37:39 +02:00
antirez
eeab60d1d5
Test: fixed scripting.tcl test false positive.
2014-04-28 18:17:02 +02:00
antirez
a8464828b6
Redis Cluster test framework skeleton.
2014-04-28 18:17:02 +02:00
antirez
a0050e5030
Sentinel test files / directories layout improved.
...
The test now runs in a self-contained directory.
The general abstractions to run the tests in an environment where
mutliple instances are executed at the same time was extrapolated into
instances.tcl, that will be reused to test Redis Cluster.
2014-04-28 18:17:02 +02:00
antirez
3bff0291d8
Test: spawn_instance now supports additional config.
2014-04-28 18:17:02 +02:00
Matt Stancliff
08174e730f
Add test for deleting an expired key
...
Verify proper expire-before-delete behavior.
This test passes with the expire-before-delete commit and fails
without it.
2014-04-23 16:14:34 +02:00
antirez
aff94a706e
Fuzzy test for ZREMRANGEBYLEX added.
2014-04-18 16:14:34 +02:00
antirez
ca6c793844
PFCOUNT multi-key test added.
2014-04-18 16:14:34 +02:00
antirez
53ca563ff7
Sorted set lex ranges stress tester.
2014-04-18 16:14:34 +02:00
antirez
5e1224dc1d
Basic ZRANGEBYLEX / ZLEXCOUNT tests.
2014-04-17 00:08:35 +02:00
antirez
00aa96f34b
More HyperLogLog tests.
2014-04-16 15:09:47 +02:00
antirez
fdace9bc50
PFMERGE fixed to work with sparse encoding.
2014-04-16 15:09:47 +02:00
antirez
e0389f031e
Initial HyperLogLog tests.
2014-04-16 15:09:45 +02:00
antirez
74d86dc13b
Test: do not complain when "leaks" can't run because process died.
2014-03-25 09:34:07 +01:00
antirez
b104015fb3
Sentinel test: 02 unit better coverage + refactoring.
2014-03-21 09:57:02 +01:00
antirez
f5f281f906
Sentinel test: foreach_instance_id implements 'break'.
2014-03-21 09:57:02 +01:00
antirez
f308f67703
Sentinel: instance_is_killed proc added to sentinel.tcl.
2014-03-21 09:57:02 +01:00
antirez
ef4e465316
Sentinel test: set less time sensitive defaults.
...
This commit sets the failover timeout to 30 seconds instead of the 180
seconds default, and allows to reconfigure multiple slaves at the same
time.
This makes tests less sensible to timing, with the result that there are
less false positives due to normal behaviors that require time to
succeed or to be retried.
However the long term solution is probably some way in order to detect
when a test failed because of timing issues (for example split brain
during leader election) and retry it.
2014-03-05 10:22:07 +01:00
antirez
fa8aca5236
Sentinel test: debugging console improved.
2014-03-05 10:22:07 +01:00
antirez
cf746c398c
Sentinel test: initial debugging console.
2014-03-05 10:22:07 +01:00
antirez
cbf51b60a2
Sentinel test: be more patient in create_redis_master_slave_cluster.
2014-03-05 10:22:07 +01:00
antirez
23a12bb8c1
Sentiel test: add test start time in output.
2014-03-05 10:22:07 +01:00
antirez
21557a0d8b
Sentinel test: use 1000 as retry in initial 00 unit test.
2014-03-05 10:22:07 +01:00
antirez
290a5d7ff6
Sentinel test: initial tests in 03 unit.
2014-03-05 10:22:07 +01:00
antirez
b2668466f4
Sentinel test: foreach_instance_id now supports 'continue'.
2014-03-05 10:22:07 +01:00
antirez
a76bca16e6
Sentienl test: fixed typo in unit 03 top comment.
2014-03-05 10:22:07 +01:00
antirez
32db37c3c4
BITPOS fuzzy testing.
2014-02-27 15:52:43 +01:00
antirez
1d62f83364
Basic BITPOS tests.
2014-02-27 15:52:43 +01:00
antirez
cbeaf17374
Added two more BITCOUNT tests stressing misaligned access.
2014-02-27 15:52:43 +01:00
antirez
9c206cc8e8
BITCOUNT fuzzy test with random start/end added.
...
It was verified in practice that this test is able to stress much more
the implementation by introducing errors that were only trivially to
detect with different offsets but impossible to detect starting always
at zero and counting bits the full length of the string.
2014-02-27 15:52:43 +01:00
antirez
d242b698f4
Sentinel test: add stub for unit 04.
2014-02-25 15:55:21 +01:00
antirez
cd8b149dff
Sentinel test: added TODO items in 02 unit.
2014-02-25 15:55:21 +01:00
antirez
c12ebb4633
Sentinel test: check role at end of unit 01.
2014-02-25 15:09:46 +01:00
antirez
cb7ccc9ad0
Sentinel test: kill masters instead of using DEBUG SLEEP in all tests.
2014-02-25 15:09:46 +01:00
antirez
31ed0911fa
Sentinel test: restart instances left killed by previous unit.
...
An unit can abort in the middle for an error. The next unit should not
assume that the instances are in a clean state, and must restart what
was left killed.
2014-02-25 10:24:16 +01:00