private synchronized void resetOffsetToSmallestLogOffset() {
            nextOffset = SMALLEST_LOG_OFFSET;
        }
Sets the nextOffset to zero.

This is done for new listeners when the partition is empty. No log and no snapshot.
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java