Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29015

Flink stop with/without savepoint does not work with kinesis consumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.15.1
    • None
    • Connectors / Kinesis
    • None
    • Flink 1.15.1. Same version for flink-connector-kinesis 1.15.1

    Description

      Trying to migrate the job from Flink 1.14 to 1.15.1, observed that stop with/without savepoint  does not work anymore. 

      The checkpointing/savepointing by themselves are working OK.

       

      The exception when stopping the job seems to come from the kinesis connector.

      2022-08-17 12:57:16,266 INFO  org.apache.flink.streaming.connectors.kinesis.internals.KinesisDataFetcher [] - Starting shutdown of shard consumer threads and AWS SDK resources of subtask 2 ...
      java.lang.InterruptedException: sleep interrupted
          at java.lang.Thread.sleep(Native Method) ~[?:?]
          at org.apache.flink.streaming.connectors.kinesis.internals.publisher.polling.PollingRecordPublisher.adjustRunLoopFrequency(PollingRecordPublisher.java:216) ~[blob_p-956a630701b5709969a8029f6fefe9d3cf05a778-c2e9ace4f09a95dc67692581fea51a5b:?]
          at org.apache.flink.streaming.connectors.kinesis.internals.publisher.polling.PollingRecordPublisher.run(PollingRecordPublisher.java:124) ~[blob_p-956a630701b5709969a8029f6fefe9d3cf05a778-c2e9ace4f09a95dc67692581fea51a5b:?]
          at org.apache.flink.streaming.connectors.kinesis.internals.publisher.polling.PollingRecordPublisher.run(PollingRecordPublisher.java:102) ~[blob_p-956a630701b5709969a8029f6fefe9d3cf05a778-c2e9ace4f09a95dc67692581fea51a5b:?]
          at org.apache.flink.streaming.connectors.kinesis.internals.ShardConsumer.run(ShardConsumer.java:114) [blob_p-956a630701b5709969a8029f6fefe9d3cf05a778-c2e9ace4f09a95dc67692581fea51a5b:?]
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
          at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
          at java.lang.Thread.run(Unknown Source) [?:?]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vvararu Vararu Vadim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: