Skip to content

KAFKA-12600: Remove deprecated config value default for client config client.dns.lookup#10458

Merged
ijuma merged 2 commits intoapache:trunkfrom
ijuma:kafka-12600-remove-deprecated-default-client-dns-lookup
Apr 1, 2021
Merged

KAFKA-12600: Remove deprecated config value default for client config client.dns.lookup#10458
ijuma merged 2 commits intoapache:trunkfrom
ijuma:kafka-12600-remove-deprecated-default-client-dns-lookup

Conversation

@ijuma
Copy link
Copy Markdown
Member

@ijuma ijuma commented Apr 1, 2021

The config has been deprecated since Kafka 2.6 (released ~1 year before
3.0), but it was the default before it got deprecated. As such, it's
reasonably unlikely that people would have set it explicitly.

Given the confusing default name even though it's not the default, I
think we should remove it in 3.0.

Also remove ClientDnsLookup.DEFAULT (not public API), which unlocks
a number of code simplications.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

…ig `client.dns.lookup`

The config has been deprecated since Kafka 2.6 (released ~1 year before
3.0), but it was the default before it got deprecated. As such, it's
reasonably unlikely that people would have set it explicitly.

Given the confusing `default` name even though it's _not_ the default, I
think we should remove it in 3.0.
@ijuma ijuma requested review from chia7712 and dajac April 1, 2021 12:45
@dajac
Copy link
Copy Markdown
Member

dajac commented Apr 1, 2021

@ijuma Makes sense to remove it. Should we remove DEFAULT from the ClientDnsLookup enum as well? Or do we have to keep it for something else?

@ijuma ijuma force-pushed the kafka-12600-remove-deprecated-default-client-dns-lookup branch 3 times, most recently from ebd3bbc to 21c0f62 Compare April 1, 2021 13:12
@ijuma ijuma force-pushed the kafka-12600-remove-deprecated-default-client-dns-lookup branch from 21c0f62 to dadaca2 Compare April 1, 2021 13:13
@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Apr 1, 2021

@dajac Yes, we can definitely remove it! Done.

Copy link
Copy Markdown
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

LGTM, assuming tests pass. Thanks!

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Apr 1, 2021

Unrelated failure that passed on retry:

Build / JDK 11 / testResponseIncludesLeaderEpoch()

@ijuma ijuma merged commit 2342ec1 into apache:trunk Apr 1, 2021
@ijuma ijuma deleted the kafka-12600-remove-deprecated-default-client-dns-lookup branch April 1, 2021 15:00
ijuma added a commit to ijuma/kafka that referenced this pull request Apr 4, 2021
…e-allocations-lz4

* apache-github/trunk: (243 commits)
  KAFKA-12590: Remove deprecated kafka.security.auth.Authorizer, SimpleAclAuthorizer and related classes in 3.0 (apache#10450)
  KAFKA-3968: fsync the parent directory of a segment file when the file is created (apache#10405)
  KAFKA-12283: disable flaky testMultipleWorkersRejoining to stabilize build (apache#10408)
  MINOR: remove KTable.to from the docs (apache#10464)
  MONOR: Remove redudant LocalLogManager (apache#10325)
  MINOR: support ImplicitLinkedHashCollection#sort (apache#10456)
  KAFKA-12587 Remove KafkaPrincipal#fromString for 3.0 (apache#10447)
  KAFKA-12426: Missing logic to create partition.metadata files in RaftReplicaManager (apache#10282)
  MINOR: Improve reproducability of raft simulation tests (apache#10422)
  KAFKA-12474: Handle failure to write new session keys gracefully (apache#10396)
  KAFKA-12593: Fix Apache License headers (apache#10452)
  MINOR: Fix typo in MirrorMaker v2 documentation (apache#10433)
  KAFKA-12600: Remove deprecated config value `default` for client config `client.dns.lookup` (apache#10458)
  KAFKA-12952: Remove deprecated LogConfig.Compact (apache#10451)
  Initial commit (apache#10454)
  KAFKA-12575: Eliminate Log.isLogDirOffline boolean attribute (apache#10430)
  KAFKA-8405; Remove deprecated `kafka-preferred-replica-election` command (apache#10443)
  MINOR: Fix docs for end-to-end record latency metrics (apache#10449)
  MINOR Replaced File with Path in LogSegmentData. (apache#10424)
  KAFKA-12583: Upgrade netty to 4.1.62.Final
  ...
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.

2 participants