public void appendVotersMessage(long timestamp, VotersRecord votersRecord) {
        appendControlRecord(
            timestamp,
            ControlRecordType.KRAFT_VOTERS,
            MessageUtil.toByteBuffer(votersRecord, ControlRecordUtils.KRAFT_VOTERS_CURRENT_VERSION)
        );
    }
Append a control record at the next sequential offset.

@param timestamp The record timestamp
@param type The control record type (cannot be UNKNOWN)
@param value The control record value
clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java