Skip to content

SharedServer

Creating Instance

SharedServer takes the following to be created:

SharedServer is created alongside KafkaRaftServer.

SnapshotGenerator

SharedServer creates a new SnapshotGenerator at start up as follows:

Property Value
Emitter SnapshotEmitter
maxBytesSinceLastSnapshot metadata.log.max.record.bytes.between.snapshots
maxTimeSinceLastSnapshotNs metadata.log.max.snapshot.interval.ms
threadNamePrefix kafka-[nodeId]-

The SnapshotGenerator is closed (and the reference de-referenced, nulled) at stop.

The SnapshotGenerator is used at start up for the MetadataLoader to installPublishers.