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
GEODE-10490: Reallocate ports in DUnit remote VMs after deserialization
In DUnit distributed tests, MemberStarterRule is serialized via RMI to remote VMs.
After deserialization, the transient portSupplier becomes null, but the port numbers
(memberPort, jmxPort, httpPort) retain their original values from the local VM.
These port numbers may conflict on remote VMs since they were allocated for the
local VM environment. The fix detects deserialization by checking for null portSupplier
and reallocates fresh ports specific to each remote VM, preventing 'Address already
in use' errors.
Also removed 'final' modifiers from availableJmxPort and availableHttpPort to allow
reassignment during deserialization handling.
0 commit comments