Just a quick demo of why TestDistributedSearch is failing, when running with the patch.
When TestDistributedSearch#test is run with two partitions, it gets a slightly different value than when run on one partition.
The two results are
This matches the numbers seen in TestDistributedSearch.
It looks like we need to add some delta into the compare for doubles in
BaseDistributedSearchTestCase#public static String compare(Object a, Object b, int flags, Map<String, Integer> handle)