Skip to content

Conversation

@dzikosc
Copy link
Contributor

@dzikosc dzikosc commented Jul 22, 2022

What is the purpose of the change

Make necessary changes for KDS connector to survive stop-with-savepoint workflow. Based on:
#17189

Brief change log

  • Reenable and harden FlinkKinesisITCase
  • Fix DataStream#executeAndCollect for stop with savepoint without drain
  • Avoid another source of interruptions during shutdown of Kinesis consumer
  • Ensure EFO version of the connector stops gracefully

Verifying this change

  • All covered by the newly expanded FlinkKinesisITCase
  • EFO scenarios verified locally against custom AWS account and real Kinesis stream

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Arvid Heise added 4 commits July 22, 2022 09:54
…#close.

DataStream#executeAndCollect expects the CollectSinkOperator to register the accumulator at the end of the application or fails with some exception.
However, a stop-with-savepoint without drain would not trigger CollectSinkOperator#finish and thus skip the registration.
…in KinesisDataFetcherTest.

Mockito makes it so much harder to debug tests. Here, we replace Mockito with a small test class that emulates the previously dispersed functionality in a simpler way.
@dzikosc dzikosc force-pushed the FLINK-23528-fix-master branch from 0f581d9 to 6de038b Compare July 22, 2022 10:02
@flinkbot
Copy link
Collaborator

flinkbot commented Jul 22, 2022

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@dzikosc dzikosc force-pushed the FLINK-23528-fix-master branch from 6de038b to 0cc29ff Compare July 22, 2022 16:39
@dannycranmer
Copy link
Contributor

Related #20133

Thanks @dzikosc, LGTM, merging.

@dannycranmer dannycranmer merged commit 4bbf319 into apache:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants