Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
0.9.0.1, 0.10.0.1
-
None
Description
In DefaultPartitioner implementation, when key is null
if (availablePartitions.size() > 0)
Where as when key is not null
return Utils.toPositive(Utils.murmur2(keyBytes)) % numPartitions;
We are returning partition by using total number of partitions.
Should n't we do the same as by considering only available partitions?