Map<TopicPartition, Long> read() throws IOException
OffsetCheckpoint
OffsetCheckpoint
is…FIXME
OffsetCheckpoint
is created when:
-
AbstractStateManager
is created -
ProcessorStateManager
is requested to checkpoint
OffsetCheckpoint
only takes the offset checkpoint file when created.
Note
|
The default name of the file is .checkpoint. |
OffsetCheckpoint
uses the internal version to maintain compatibility between checkpointing protocols. The current version is 0.
Loading Offset Checkpoint File — read
Method
read
…FIXME
Note
|
|
Writing Offsets to Checkpoint File — write
Method
void write(final Map<TopicPartition, Long> offsets) throws IOException
write
…FIXME
Note
|
|
Deleting Offset Checkpoint File — delete
Method
void delete() throws IOException
delete
simply deletes the offset checkpoint file if exists.
Note
|
delete is used exclusively when ProcessorStateManager is created (with Exactly-Once Support (EOS) enabled).
|