Skip to content

Commit

Permalink
Add InetAddress.getLocalHost().getCanonicalHostName() for MyRack. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy authored Feb 20, 2024
1 parent ee56a95 commit 978414f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public class TestRegionAwareEnsemblePlacementPolicy extends TestCase {
static void updateMyRack(String rack) throws Exception {
StaticDNSResolver.addNodeToRack(InetAddress.getLocalHost().getHostAddress(), rack);
StaticDNSResolver.addNodeToRack(InetAddress.getLocalHost().getHostName(), rack);
StaticDNSResolver.addNodeToRack(InetAddress.getLocalHost().getCanonicalHostName(), rack);
BookieSocketAddress bookieAddress = new BookieSocketAddress(
InetAddress.getLocalHost().getHostAddress(), 0);
StaticDNSResolver.addNodeToRack(bookieAddress.getSocketAddress().getHostName(), rack);
Expand Down

0 comments on commit 978414f

Please sign in to comment.