You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cells: use core domain endpoint only if hostname resolable
Motivation:
Recently we have observe cases whee tunnel connections failed with:
java.lang.NullPointerException: null
at java.base/java.net.Socket.<init>(Socket.java:501)
at java.base/java.net.Socket.<init>(Socket.java:319)
at java.base/javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:277)
at dmg.cells.network.LocationManagerConnector.connect(LocationManagerConnector.java:66)
at dmg.cells.network.LocationManagerConnector.run(LocationManagerConnector.java:96)
at dmg.cells.nucleus.CellNucleus.lambda$wrapLoggingContext$2(CellNucleus.java:725)
at java.base/java.lang.Thread.run(Thread.java:840)
This is possible only if hostname can't be resolve. Such tunnels die and
never re-connect.
Modification:
Update zookeeper node update logic to ensure that we accept endpoint
only if hostname is resolvable.
Result:
More robust tunnel handling.
Issue: #5326
Acked-by: Marina Sahakyan
Target: master, 10.2
Require-book: no
Require-notes: yes
0 commit comments