pushCommitted
Push entry onto committed and advance commitIndex to entry's index.
node.pushCommitted(LogEntry(index = 1, term = 1, command = byteArrayOf(42)))
val entry = node.committed.first()Content copied to clipboard
An internal entry (a §5.4.2 no-op or a §6 config entry) surfaces as a payload-free Committed.Internal marker at its index, exactly as the real engine withholds it — see asCommitted. Push one to model what a consumer sees across an election or a membership change (#1718).
Convenience: create a LogEntry at the next auto-incremented index (term=1) with command, push it onto committed, and return it.
node.pushCommitted("set x=1".encodeToByteArray())
val entry = node.committed.first()Content copied to clipboard