void handleScheduleAtomicAppend(long endOffset) {
        this.nextWriteOffset = endOffset + 1;

        snapshotRegistry.getOrCreateSnapshot(endOffset);

        metrics.setLastAppliedRecordOffset(endOffset);

        // This is not truly the append timestamp. The KRaft client doesn't expose the append
        // time when scheduling a write. This is good enough because this is called right after
        // the records were given to the KRAft client for appending and the default append linger
        // for KRaft is 25ms.
        metrics.setLastAppliedRecordTimestamp(time.milliseconds());
    }
Called by the active controller after it has invoked scheduleAtomicAppend to schedule some
records to be written.

@param endOffset The offset of the last record that was written.
metadata/src/main/java/org/apache/kafka/controller/OffsetControlManager.java