Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-34333][k8s] 1.18 backport of FLINK-34007 #24245

Merged
merged 6 commits into from
Feb 13, 2024

Conversation

XComp
Copy link
Contributor

@XComp XComp commented Feb 1, 2024

What is the purpose of the change

This is the fix of FLINK-34007 applied to Flink 1.18. In the end, it's a straight-forward backport including the upgrade to fabric8io:kubernetes-client v6.9.0. See FLINK-34333 for further details on the discussion whether the dependency upgrade is suitable.

Brief change log

Verifying this change

  • Extends KubernetesLeaderElectorITCase to include a test case for the scenario that was revealed in FLINK-34007 and a check that verifies the leadership lost event being sent when stopping the KubernetesLeaderElector

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

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

Documentation

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

@flinkbot
Copy link
Collaborator

flinkbot commented Feb 1, 2024

CI report:

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

XComp added 4 commits February 5, 2024 23:11
…e rely on a BlockingQueue

This allows us to wait for tasks to "arrive".
…calls

This way, we can use FlinkAssertions#assertThatFuture and use assertion messages instead of comments.
XComp added 2 commits February 7, 2024 09:01
…#run() call (cherry-picked from FLINK-34007)

v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
An ITCase is added to cover the scenario where the leadership is lost.
…pache#5464 (cherry-picked from FLINK-34007)

fabric8io/kubernetes-client#5463

The change in KubernetesClientTestBase was necessary because of the change [apache#5369](fabric8io/kubernetes-client#5369) that ended up in v6.9.0 as well.
@XComp XComp merged commit 35c5603 into apache:release-1.18 Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants