Class BinlogSplitMetaAssembledEvent
- java.lang.Object
-
- org.apache.flink.cdc.connectors.mysql.source.events.BinlogSplitMetaAssembledEvent
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.connector.source.SourceEvent
public class BinlogSplitMetaAssembledEvent extends Object implements org.apache.flink.api.connector.source.SourceEvent
TheSourceEventthatMySqlSourceReadersends toMySqlSourceEnumeratoronce it holds a completeMySqlBinlogSplit, signalling that all finished snapshot split metadata has been assembled by the reader. This lets the enumerator release the snapshot split metadata it retains. Idempotent: re-sent whenever a complete binlog split (re-)enters reading.Carries the generation the reader assembled under, or
COMPLETE_WITHOUT_META_GENERATIONfor an inline split. The coordinator uses it to drop a stale event left over from a failed reader attempt, which would otherwise arm the release before a freshly-assigned reader has re-assembled.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longCOMPLETE_WITHOUT_META_GENERATIONReported instead of a real generation when the reader held a complete split inline and never requested meta groups.
-
Constructor Summary
Constructors Constructor Description BinlogSplitMetaAssembledEvent(long binlogAssignmentGeneration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBinlogAssignmentGeneration()
-
-
-
Field Detail
-
COMPLETE_WITHOUT_META_GENERATION
public static final long COMPLETE_WITHOUT_META_GENERATION
Reported instead of a real generation when the reader held a complete split inline and never requested meta groups. The coordinator releases on it regardless of generation, since an inline reader never needs the coordinator's metadata.- See Also:
- Constant Field Values
-
-