redict/tests
antirez 356a6304ec Multiple GEORADIUS bugs fixed.
By grepping the continuous integration errors log a number of GEORADIUS
tests failures were detected.

Fortunately when a GEORADIUS failure happens, the test suite logs enough
information in order to reproduce the problem: the PRNG seed,
coordinates and radius of the query.

By reproducing the issues, three different bugs were discovered and
fixed in this commit. This commit also improves the already good
reporting of the fuzzer and adds the failure vectors as regression
tests.

The issues found:

1. We need larger squares around the poles in order to cover the area
requested by the user. There were already checks in order to use a
smaller step (larger squares) but the limit set (+/- 67 degrees) is not
enough in certain edge cases, so 66 is used now.

2. Even near the equator, when the search area center is very near the
edge of the square, the north, south, west or ovest square may not be
able to fully cover the specified radius. Now a test is performed at the
edge of the initial guessed search area, and larger squares are used in
case the test fails.

3. Because of rounding errors between Redis and Tcl, sometimes the test
signaled false positives. This is now addressed.

Whenever possible the original code was improved a bit in other ways. A
debugging example stanza was added in order to make the next debugging
session simpler when the next bug is found.
2016-07-27 11:34:25 +02:00
..
assets Test: enable latency monitor in the default config. 2014-07-10 15:04:34 +02:00
cluster Cluster test 12: reshard back just a few slots to speedup the test. 2016-05-05 11:57:49 +02:00
helpers Regression test for issue 417 (memory leak when replicating to DB with id >= 10) 2012-03-30 10:26:07 +02:00
integration Fix test for new RDB checksum failure message. 2016-07-04 12:41:35 +02:00
sentinel Sentinel: new test unit 07 that tests master down conditions. 2016-07-22 16:39:26 +02:00
support various cleanups and minor fixes 2016-04-25 16:49:57 +03:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit Multiple GEORADIUS bugs fixed. 2016-07-27 11:34:25 +02:00
instances.tcl Test: Handle LOADING in restart_instance. 2016-01-15 16:50:35 +01:00
test_helper.tcl Test TOUCH and new TTL / TYPE behavior about object access time. 2016-06-15 17:15:51 +02:00