Skip to content

Remove usages of DruidLeaderClient from extensions - #18297

Merged
kfaraz merged 6 commits into
apache:masterfrom
kfaraz:remove_dlc
Jul 23, 2025
Merged

Remove usages of DruidLeaderClient from extensions#18297
kfaraz merged 6 commits into
apache:masterfrom
kfaraz:remove_dlc

Conversation

@kfaraz

@kfaraz kfaraz commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

Description

This is a follow up to the work done by @uds5501 in #18142 , #18192 and #18195
to replace usages of DruidLeaderClient with a ServiceClient-based implementation.

Changes

  • Remove usages of DruidLeaderClient in extensions druid-basic-security and druid-catalog
  • Use ServiceClient to make HTTP calls instead
  • Remove classes DruidLeaderClient, CoordinatorDiscoveryModule
  • Add embedded test CatalogCompactionTest

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

.useLatchableEmitter()
.addExtension(CatalogClientModule.class)
.addExtension(CatalogCoordinatorModule.class)
.addExtension(AWSModule.class)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Q: Why do we need the AWS module?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Yeah, this is not needed here. Must have been left over from when I was debugging this test.

@Akshat-Jain Akshat-Jain reopened this Jul 21, 2025
@uds5501

uds5501 commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

The changes LGTM :D

@Akshat-Jain Akshat-Jain reopened this Jul 21, 2025
@Akshat-Jain Akshat-Jain reopened this Jul 21, 2025

@cryptoe cryptoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes LGTM. Thanks for the patch and sun-setting DruidLeaderClient.

@kfaraz

kfaraz commented Jul 23, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews, @cryptoe , @uds5501 !

@kfaraz
kfaraz merged commit 093d60a into apache:master Jul 23, 2025
77 checks passed
@kfaraz
kfaraz deleted the remove_dlc branch July 23, 2025 11:32
kfaraz added a commit that referenced this pull request Jul 25, 2025
…18326)

#18297 added a CoordinatorServiceClient as a replacement for DruidLeaderClient
to druid-basic-security extension.
This client is a wrapper over ServiceClient for querying non-core APIs exposed by the Coordinator.
(For core APIs, CoordinatorClient should be used).

This patch moves that class to druid-server so that it may be used by other extensions too if needed.
@cecemei cecemei added this to the 35.0.0 milestone Oct 21, 2025
riovic918data added a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
Description:
This is a follow up to the work done by @uds5501 in apache#18142 , apache#18192 and apache#18195 
to replace usages of `DruidLeaderClient` with a `ServiceClient`-based implementation.

Changes:
- Remove usages of `DruidLeaderClient` in extensions `druid-basic-security` and `druid-catalog`
- Use `ServiceClient` to make HTTP calls instead
- Remove classes `DruidLeaderClient`, `CoordinatorDiscoveryModule`
- Add embedded test `CatalogCompactionTest`
riovic918data added a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
…pache#18326)

apache#18297 added a CoordinatorServiceClient as a replacement for DruidLeaderClient
to druid-basic-security extension.
This client is a wrapper over ServiceClient for querying non-core APIs exposed by the Coordinator.
(For core APIs, CoordinatorClient should be used).

This patch moves that class to druid-server so that it may be used by other extensions too if needed.
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.

5 participants