public static int partitionForKey(final byte[] serializedKey, final int numPartitions) {
        return Utils.toPositive(Utils.murmur2(serializedKey)) % numPartitions;
    }
Info for the current sticky partition.
clients/src/main/java/org/apache/kafka/clients/producer/internals/BuiltInPartitioner.java