Skip to content

Use internal-discovery and http for talking to overlord/coordinator leaders#4735

Merged
cheddar merged 5 commits intoapache:masterfrom
himanshug:membership_pr2_2
Sep 11, 2017
Merged

Use internal-discovery and http for talking to overlord/coordinator leaders#4735
cheddar merged 5 commits intoapache:masterfrom
himanshug:membership_pr2_2

Conversation

@himanshug
Copy link
Copy Markdown
Contributor

@himanshug himanshug commented Aug 31, 2017

This patch introduces class DruidLeaderClient to facilitate interaction with coordinator and overlord leaders. Please see the javadoc on class for more information.

Above class is intended to discover all coordinator or overlord nodes from internal discovery and then interact with the leader by depending upon the existing redirection feature and getLeader endpoint provided by them.
However, to retain backward compatibility and to allow rolling upgrade, it first tries to find the coordinator or overlord node in external discovery which shall be removed in future.

All the other classes that used to interact with coordinator or overlord leaders have been updated to use DruidLeaderClient.

@himanshug himanshug added this to the 0.11.0 milestone Aug 31, 2017
@himanshug himanshug requested a review from cheddar August 31, 2017 15:49
@himanshug himanshug force-pushed the membership_pr2_2 branch 2 times, most recently from 61d8e3e to 02dedff Compare September 1, 2017 14:40
@himanshug himanshug force-pushed the membership_pr2_2 branch 2 times, most recently from 88ea4b0 to 3046c40 Compare September 1, 2017 18:10
@himanshug himanshug changed the title Use internal-discovery and http for talking to overlord/coordinator leaders [WIP]Use internal-discovery and http for talking to overlord/coordinator leaders Sep 1, 2017
@himanshug himanshug force-pushed the membership_pr2_2 branch 2 times, most recently from 510e616 to f1a2432 Compare September 5, 2017 15:12
@himanshug himanshug changed the title [WIP]Use internal-discovery and http for talking to overlord/coordinator leaders Use internal-discovery and http for talking to overlord/coordinator leaders Sep 5, 2017
@himanshug himanshug closed this Sep 6, 2017
@himanshug himanshug reopened this Sep 6, 2017
…hen needed so that DruidNodeDiscovery impl cache gets initialized well in time
…covery when needed so that DruidNodeDiscovery impl cache gets initialized well in time"

This reverts commit f1a2432614ba56ddc2d55fe47e990d17fcfd6129.
…very so that it has its cache update well in time
@cheddar
Copy link
Copy Markdown
Contributor

cheddar commented Sep 11, 2017

👍

@cheddar cheddar merged commit 834e050 into apache:master Sep 11, 2017
@himanshug himanshug deleted the membership_pr2_2 branch December 29, 2017 17:44
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.

2 participants