Github user StephanEwen commented on a diff in the pull request: https://github.com/apache/flink/pull/674#discussion_r30787289 --- Diff: flink-staging/flink-streaming/flink-streaming-connectors/src/main/java/org/apache/flink/streaming/connectors/kafka/api/persistent/PersistentKafkaSource.java --- @@ -225,7 +226,16 @@ public void close() { @Override public void restoreState(long[] state) { - // we maintain the offsets in Kafka, so nothing to do. + if(lastOffsets == null) { + LOG.warn("Restore state called before open() has been called"); --- End diff -- Actually, restore state is always called before `open()`, as far as I know.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---