apache / apache/bookkeeper

Can not get real ip when use RackawareEnsemblePlacementPolicy

Open
#2,784 1 comment 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**BUG REPORT**

***Describe the bug***

- set ensemblePlacementPolicy=org.apache.bookkeeper.client.RackawareEnsemblePlacementPolicy
- set reppDnsResolverClass=myclass(implements DNSToSwitchMapping)

In some server, I get 127.0.0.1 when the method DNSToSwitchMapping.resolve called.
But the real ip (129.x.x.x) is expected.

***Screenshots***

![image](https://user-images.githubusercontent.com/9473606/131961337-404f8fb3-fadf-4fdf-9a45-372e6ba05459.png)

***Additional context***

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.