[FLINK-39316][runtime] Fix BlobServer address resolution failing with VPN networking#27820
[FLINK-39316][runtime] Fix BlobServer address resolution failing with VPN networking#27820ddebowczyk92 wants to merge 1 commit intoapache:masterfrom
Conversation
|
|
|
@gaborgsomogyi Hey, thanks for your input. The thing with that suggestion is that I'm not sure where I would apply this configuration. it would definitely be too late. Anyway, I think we're drifting a bit from the purpose of this change. As I described in more detail in the JIRA ticket FLINK-39316, the problem I'm trying to solve occurs under certain circumstances. When I was trying to run It took me a non-trivial amount of time to figure out what was actually going on and how to prevent it. I believe this small change would prevent many headaches for developers who work behind corporate VPNs |
… VPN networking
What is the purpose of the change
BlobServer.getAddress()falls back to InetAddress.getLocalHost()when bound to the wildcard address (0.0.0.0). On machines where the hostname resolves to a non-local IP (e.g. VPN), this returns an unreachable address, causing blob uploads to fail with Connection reset during job submission. This was introduced by FLINK-38109.Brief change log
BlobServer.getAddress()to useInetAddress.getLoopbackAddress()instead ofInetAddress.getLocalHost()when bound to the wildcard addressVerifying this change
Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.
This change is already covered by existing tests, such as
FunctionITCase#testUsingAddJar.Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation