Skip to content

HIVE-24875: Unify InetAddress.getLocalHost() - #6784

Open
sayalimohite55 wants to merge 1 commit into
apache:masterfrom
sayalimohite55:HIVE-24875
Open

sayalimohite55 wants to merge 1 commit into
apache:masterfrom
sayalimohite55:HIVE-24875

Conversation

@sayalimohite55

Copy link
Copy Markdown

What changes were proposed in this pull request?

Unified usage of getLocalHost, getCanonicalAddress methods from InetAddress removing repeatative exception handling logic and placing it in common utils classes for reuse.

Why are the changes needed?

InetAddress.getLocalHost() is accessed in different classes. It throws UnknownHostException which is handled differently everywhere. Unification of these calls is required for reusability and ensuring common graceful behavior across all calls.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants