Commit 7fdb3c5
fix(metrics): use HashSet and add fork rollback guard for SR set change
- Replace ConcurrentHashMap.newKeySet() with HashSet since applyBlock()
is only called from a single-threaded path (synchronized on blockLock)
- Add fork rollback detection: when nextMaintenanceTime < lastNextMaintenanceTime,
reinitialize in-memory state instead of diffing, preventing phantom SR changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7f351bf commit 7fdb3c5
1 file changed
Lines changed: 9 additions & 2 deletions
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
0 commit comments