mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
With a high ephemeral lower bound the weed pair range ran to 40000, so one shard's HTTP slice (20000-29999 for shards 1-2, 30000+ for shards 3-4) could meet another shard's gRPC ports (HTTP + 10000). weedPairRange caps the HTTP range at 30000, below every gRPC port, and below the ephemeral range less 10000 when that leaves room (the Linux default, 32768, still gives 20000-22767). TestWeedPairSlicesNeverMeetAcrossShards checks every pair of shards' HTTP and gRPC slices for ephemeral bounds from 28000 to 61000; with the old cap it fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>