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
Server discovery selector ipv6 friendly #1811
Conversation
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")); |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
…directly instead of using String.format
8bbd068
to
bf11723
Compare
👍 |
👍 |
Server discovery selector ipv6 friendly
No description provided.