Skip to content

[LIVY-1071] Add driver.address.use-hostname RSC config flag - #544

Open
soumyadeeplogin wants to merge 1 commit into
apache:masterfrom
soumyadeeplogin:livy-item1-driver-hostname-flag
Open

[LIVY-1071] Add driver.address.use-hostname RSC config flag#544
soumyadeeplogin wants to merge 1 commit into
apache:masterfrom
soumyadeeplogin:livy-item1-driver-hostname-flag

Conversation

@soumyadeeplogin

Copy link
Copy Markdown

What changes were proposed in this pull request?

Adds an opt-in RSCConf key, driver.address.use-hostname (default false), that makes ContextLauncher resolve the RSC driver's address from the hostname reported in RemoteDriverAddress instead of the socket's IP. Existing IP-based behavior is unchanged when the flag is left at its default.

This is useful for Kubernetes + service-mesh (Istio) deployments where pod IPs are not stable/routable but hostnames are.

Originally authored by Venugopal Allenki, extracted and rebased onto current master for upstreaming.

How was this patch tested?

Manually verified in a Kubernetes + Istio deployment with the flag enabled and disabled. No new automated unit test was added, matching the scope/testing depth of the related prior contribution (#462), which covered the same RPC handshake path without a dedicated unit test since RegistrationHandler is a private inner class only exercisable via a full RPC handshake.

Note on JIRA

A LIVY JIRA ticket for this change is being filed; will update the title with the ticket number ([LIVY-xxxx]) once available.

Adds an opt-in RSCConf key, driver.address.use-hostname (default false),
that makes ContextLauncher resolve the RSC driver's address from the
hostname reported in RemoteDriverAddress instead of the socket's IP.
Existing IP-based behavior is unchanged when the flag is left at its
default. Useful for Kubernetes + service-mesh (Istio) deployments where
pod IPs are not stable/routable but hostnames are.

Authored-by: Venugopal Allenki <vallenki@salesforce.com>
Co-authored-by: Soumyadeep Roy <soumyadeep.roy@salesforce.com>
@soumyadeeplogin soumyadeeplogin changed the title Add driver.address.use-hostname RSC config flag [LIVY-1071] Add driver.address.use-hostname RSC config flag Aug 21, 2026
@soumyadeeplogin

Copy link
Copy Markdown
Author

Filed https://issues.apache.org/jira/browse/LIVY-1071 for this change.

@soumyadeeplogin

Copy link
Copy Markdown
Author

@gyogal @roczei could one of you approve the CI workflow run for this PR (first-time contributor gate) and take a look when you have a chance? Filed as LIVY-1071.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants