public interface KafkaMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
long |
getLastOffsetPersisted()
LastOffsetPersisted is the encoded value for the Metadata message
which is encoded in the ORDERER block metadata index for the case
of the Kafka-based orderer.
|
long |
getLastOriginalOffsetProcessed()
LastOriginalOffsetProcessed is used to keep track of the newest
offset processed if a message is re-validated and re-ordered.
|
long |
getLastResubmittedConfigOffset()
LastResubmittedConfigOffset is used to capture the newest offset of
CONFIG kafka message, which is revalidated and resubmitted.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
long getLastOffsetPersisted()
LastOffsetPersisted is the encoded value for the Metadata message which is encoded in the ORDERER block metadata index for the case of the Kafka-based orderer.
int64 last_offset_persisted = 1 [json_name = "lastOffsetPersisted"];
long getLastOriginalOffsetProcessed()
LastOriginalOffsetProcessed is used to keep track of the newest offset processed if a message is re-validated and re-ordered. This value is used to deduplicate re-submitted messages from multiple orderer so that we don't bother re-processing it again.
int64 last_original_offset_processed = 2 [json_name = "lastOriginalOffsetProcessed"];
long getLastResubmittedConfigOffset()
LastResubmittedConfigOffset is used to capture the newest offset of CONFIG kafka message, which is revalidated and resubmitted. By comparing this with LastOriginalOffsetProcessed, we could detemine whether there are still CONFIG messages that have been resubmitted but NOT processed yet. It's used as condition to block ingress messages, so we could reduce the overhead of repeatedly resubmitting messages as config seq keeps advancing.
int64 last_resubmitted_config_offset = 3 [json_name = "lastResubmittedConfigOffset"];
Copyright © 2022. All rights reserved.