public void forceDrain() {
        appendLock.lock();
        try {
            drainStatus = DrainStatus.STARTED;
            maybeCompleteDrain();
        } finally {
            appendLock.unlock();
        }
    }
Append a {@link SnapshotFooterRecord} record to the batch

@param snapshotFooterRecord The record to append
@param currentTimestamp The current time in milliseconds
@throws IllegalStateException on failure to allocate a buffer for the record
raft/src/main/java/org/apache/kafka/raft/internals/BatchAccumulator.java