Commit 95fcbd6
[ISSUE #10580] Clarify static topic epoch comparison intent
Address review feedback on PR #10581: explain why the epoch comparison
in ClientMetadata.topicRouteData2EndpointsForStaticTopic changed from
>= to >. The change is intentional — total queue count is now scoped to
the latest epoch so a stale mapping cannot inflate maxTotalNums, with
same-epoch ties broken by the largest totalQueues (covered by the
UsesMaxTotalQueuesInSameEpoch test). Also document why the sort uses an
overflow-safe comparator.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 20696af commit 95fcbd6
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
0 commit comments