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

Server discovery selector ipv6 friendly #1811

Merged
merged 3 commits into from Oct 13, 2015

Conversation

drcrallen
Copy link
Contributor

No description provided.

@drcrallen drcrallen changed the title Server discovery selector i pv6 Server discovery selector ipv6 friendly Oct 8, 2015
Assert.assertTrue(server.getHost().contains(new Integer(PORT).toString()));
Assert.assertTrue(server.getHost().contains(ADDRESS));
Assert.assertEquals(new String("http"), server.getScheme());
EasyMock.verify(instance,serviceProvider);
EasyMock.verify(instance, serviceProvider);
final URI uri = new URI(String.format("%s://%s%s", server.getScheme(), server.getHost(), "/druid/indexer/v1/action"));
Copy link
Member

Choose a reason for hiding this comment

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

since this PR is about removing potentially bad String.format assumptions, let's use new URI(scheme, host, path, null) instead of String.format here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it here because that's the method used elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

io.druid.indexing.common.actions.RemoteTaskActionClient#makeServiceUri

Copy link
Contributor Author

Choose a reason for hiding this comment

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

io.druid.server.router.CoordinatorRuleManager#getRuleURL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

io.druid.client.indexing.IndexingServiceClient#baseUrl

@xvrl
Copy link
Member

xvrl commented Oct 12, 2015

👍

@xvrl xvrl added this to the 0.8.2 milestone Oct 13, 2015
@nishantmonu51
Copy link
Member

👍

nishantmonu51 added a commit that referenced this pull request Oct 13, 2015
Server discovery selector ipv6 friendly
@nishantmonu51 nishantmonu51 merged commit 273ec21 into apache:master Oct 13, 2015
@drcrallen drcrallen deleted the ServerDiscoverySelectorIPv6 branch October 14, 2015 17:41
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.

None yet

3 participants