The check for balanced tablets in the randomwalk Concurrent test too easily fails.
Here is a real-life example from the test for the number of tablets across five tablet servers: 2, 5, 2, 2, 3. (An old unrelated table plays into these totals.) This produces a mean of 2.8. The cluster is considered unbalanced by the test when any server's count differs from the mean by the larger of 1 or the mean divided by 5. In this case, 2.8/5 is less than 1, so the second tablet server fails since it has more than 3.8 tablets. Even a 4 would fail.
Part of the problem in this particular case is that there are so few tablets, and so few tablet servers. The cluster also seems happy to leave these counts as is, as I continue to check it, so the test's definition of unbalanced is too narrow.
The test needs to be refined to detect unbalanced conditions with a statistically decent calculation.
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Status||In Progress [ 3 ]||Patch Available [ 10002 ]|
|Fix Version/s||1.4.5 [ 12324754 ]|
|Fix Version/s||1.5.2 [ 12326272 ]|
|Fix Version/s||1.6.0 [ 12322468 ]|
|Remote Link||This issue links to "Review (Web Link)" [ 14606 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|