Commit 60fe35c
Use collision-resistant keys in LogStore
Replace the in-memory per-trace sequence counter with a
timestamp + random suffix key strategy. This eliminates two
problems:
- Key collisions when multiple processes share the same KvStore
(each process had its own counter starting at 0).
- Unbounded memory growth from the #seq Map that was never cleared.
#564 (comment)
#564 (comment)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6d7683d commit 60fe35c
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
109 | | - | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
0 commit comments