aboutsummaryrefslogtreecommitdiff
path: root/examples/src
diff options
context:
space:
mode:
authorShixiong Zhu <shixiong@databricks.com>2016-05-18 20:15:00 -0700
committerShixiong Zhu <shixiong@databricks.com>2016-05-18 20:15:00 -0700
commit5c9117a3ed373461529f9f9306668ed4149c63fb (patch)
tree470f3c9a1c676327188673f3597cf2790b4f179e /examples/src
parentb1bc5ebdd52ed12aea3fdc7b8f2fa2d00ea09c6b (diff)
downloadspark-5c9117a3ed373461529f9f9306668ed4149c63fb.tar.gz
spark-5c9117a3ed373461529f9f9306668ed4149c63fb.tar.bz2
spark-5c9117a3ed373461529f9f9306668ed4149c63fb.zip
[SPARK-15395][CORE] Use getHostString to create RpcAddress
## What changes were proposed in this pull request? Right now the netty RPC uses `InetSocketAddress.getHostName` to create `RpcAddress` for network events. If we use an IP address to connect, then the RpcAddress's host will be a host name (if the reverse lookup successes) instead of the IP address. However, some places need to compare the original IP address and the RpcAddress in `onDisconnect` (e.g., CoarseGrainedExecutorBackend), and this behavior will make the check incorrect. This PR uses `getHostString` to resolve the issue. ## How was this patch tested? Jenkins unit tests. Author: Shixiong Zhu <shixiong@databricks.com> Closes #13185 from zsxwing/host-string.
Diffstat (limited to 'examples/src')
0 files changed, 0 insertions, 0 deletions