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-26928][connector/kafka] Remove unnecessary Docker network creation in tests #19282

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

PatrickRen
Copy link
Contributor

What is the purpose of the change

This pull request removes unnecessary Docker network creation in Kafka connector tests.

Brief change log

  • Remove unnecessary Docker network creation in Kafka connector tests

Verifying this change

This change is already covered by existing Kafka connector tests.

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)

@flinkbot
Copy link
Collaborator

flinkbot commented Mar 30, 2022

CI report:

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

if (numBrokers > 1) {
Network network = Network.newNetwork();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a cleaner way to avoid 'ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network' is release the created network resources after used it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @leonardBang ! Fixed in e4e1d24.

…tion in tests and close network on shutdown()
Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PatrickRen for the update, LGTM

@leonardBang leonardBang merged commit 47a1f32 into apache:master Mar 31, 2022
PatrickRen added a commit to PatrickRen/flink that referenced this pull request Mar 31, 2022
…tion in tests and close network on shutdown()

This closes apache#19282.

(cherry picked from commit 47a1f32)
JasonLeeCoding pushed a commit to JasonLeeCoding/flink that referenced this pull request May 27, 2022
…tion in tests and close network on shutdown()

This closes apache#19282.
zstraw pushed a commit to zstraw/flink that referenced this pull request Jul 4, 2022
…tion in tests and close network on shutdown()

This closes apache#19282.
jnh5y pushed a commit to jnh5y/flink that referenced this pull request Dec 18, 2023
…tion in tests and close network on shutdown()

This closes apache#19282.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants