Commit 36fc1a6
dmitrivasilyev
Fix spurious "Server from an obsolete pool" warning with dynamic pools
The stats collector was snapshotting SERVER_STATS before POOLS, creating
a race window where dynamic pool GC could remove a pool between the two
snapshots. This caused harmless but noisy warn-level messages every stats
collection cycle for auth_query dynamic pools.
Two fixes:
- Reorder snapshots: POOLS first, then SERVER_STATS/CLIENT_STATS. If a
pool is GC'd before the POOLS snapshot, its servers are already gone
from SERVER_STATS (retain closes them before GC removes the pool).
- Downgrade warn! to debug! for the residual race (matches the client
case which already uses debug! on line 568).1 parent 18f1993 commit 36fc1a6
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | 262 | | |
264 | | - | |
265 | | - | |
266 | 263 | | |
267 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| |||
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
588 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
589 | 594 | | |
590 | 595 | | |
591 | 596 | | |
| |||
0 commit comments