- Add upfront reservation of all calculated gRPC ports before allocating HTTP ports
to prevent collisions where an HTTP port allocation could use a port that will
later be needed for a gRPC port calculation.
Example scenario that is now prevented:
- Master HTTP reallocated from 9333 to 9334 (original in use)
- Filer HTTP search finds 19334 available and assigns it
- Master gRPC calculated as 9334 + GrpcPortOffset = 19334 → collision!
Now: reserved gRPC ports are tracked upfront and HTTP port search skips them.
- Improve admin server gRPC port fallback error handling:
- Change from silent V(1) verbose log to Warningf to make the error visible
- Update comment to clarify this indicates a problem in the port initialization sequence
- Add explanation that the fallback calculation may cause bind failure
- Update ensureAllPortsAvailableOnIP comment to clarify it avoids reserved ports