private int positionOf(byte[] hash, int attempt) {
        int probe = ByteUtils.readIntBE(hash, Math.min(attempt, hashSize - 4)) + Math.max(0, attempt - hashSize + 4);
        int slot = Utils.abs(probe) % slots;
        ++this.probes;
        return slot * bytesPerEntry;
    }
Calculate the ith probe position. We first try reading successive integers from the hash itself
then if all of those fail we degrade to linear probing.
@param hash The hash of the key to find the position for
@param attempt The ith probe
@return The byte offset in the buffer at which the ith probing for the given hash would reside
storage/src/main/java/org/apache/kafka/storage/internals/log/SkimpyOffsetMap.java