@Internal public class MetadataUpdateEvent extends Object implements org.apache.flink.api.connector.source.SourceEvent
DynamicKafkaSourceReader to stop their underlying readers. The restart process is
as follows:
1. Detect metadata change in enumerator 2. Stop sub enumerators and don't snapshot state 3. Send this event to all readers 4. Stop sub readers and snapshot state (offsets) 5. Start new sub enumerators with clean state and do total split reassignment to readers 6. Readers obtain splits, starting sub readers dynamically, and do reconciliation of starting offsets with the cached offsets
We don't snapshot enumerator state because we want to reassign previously assigned splits. After restart, readers need to reinitialize the sub readers by using the received splits.
| Constructor and Description |
|---|
MetadataUpdateEvent(Set<KafkaStream> kafkaStreams) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<KafkaStream> |
getKafkaStreams() |
int |
hashCode() |
String |
toString() |
public MetadataUpdateEvent(Set<KafkaStream> kafkaStreams)
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.