THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Add the unassignedInitialPartitons
(collection) and firstDiscoveryDone
initialDiscoveryFinished(boolean) to the snapshot state. unassignedInitialPartitons
represents the collection of first-discovered partitions that have not yet been assigned. firstDiscoveryDone
represents whether the first-discovery has been done.
...
Code Block | ||
---|---|---|
| ||
public class KafkaSourceEnumState { private final Set<TopicPartition> assignedPartitions; private final Set<TopicPartition> unassignedInitialPartitons; private final boolean firstDiscoveryDoneinitialDiscoveryFinished; } |
Merge assignedPartitions
and unassignedInitialPartitons
collections
...