tweise commented on a change in pull request #6980: [FLINK-5697] [kinesis] Add
periodic per-shard watermark support
URL: https://github.com/apache/flink/pull/6980#discussion_r235149642
##########
File path:
flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/internals/KinesisDataFetcher.java
##########
@@ -182,6 +189,28 @@
private volatile boolean running = true;
+ private final AssignerWithPeriodicWatermarks<T>
periodicWatermarkAssigner;
+
+ /**
+ * The watermark related state for each shard consumer. Entries in this
map will be created when shards
+ * are discovered. After recovery, this shard map will be recreated,
possibly with different shard index keys,
+ * since those are transient and not part of checkpointed state.
+ */
+ private ConcurrentHashMap<Integer, ShardWatermarkState> shardWatermarks
= new ConcurrentHashMap<>();
Review comment:
The mapping can change after recovery. It is not necessary to checkpoint
this though because the watermarks are derived information.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services