public class LogTruncationException extends OffsetOutOfRangeException
| Constructor and Description |
|---|
LogTruncationException(java.lang.String message,
java.util.Map<TopicPartition,java.lang.Long> fetchOffsets,
java.util.Map<TopicPartition,OffsetAndMetadata> divergentOffsets) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<TopicPartition,OffsetAndMetadata> |
divergentOffsets()
Get the divergent offsets for the partitions which were truncated.
|
offsetOutOfRangePartitions, partitionspublic LogTruncationException(java.lang.String message,
java.util.Map<TopicPartition,java.lang.Long> fetchOffsets,
java.util.Map<TopicPartition,OffsetAndMetadata> divergentOffsets)
public java.util.Map<TopicPartition,OffsetAndMetadata> divergentOffsets()
OffsetOutOfRangeException.partitions() to see the set of partitions that were truncated
and then check for the presence of a divergent offset in this map.