This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit 4e03bae
authored
Ingest stats panic - fix (#1440)
Fixes not protected concurrent map access.
```
fatal error: concurrent map read and map write
goroutine 193 [running]:
internal/runtime/maps.fatal({0xa2c93c?, 0x0?})
/usr/local/go/src/runtime/panic.go:1058 +0x20
github.com/QuesmaOrg/quesma/platform/stats.(*Statistics).Process(0x1279838?, 0x9f?, {0x400e74199f?, 0x22?}, 0x1d?, {0xa09a4e?, 0x2b?})
/platform/stats/ingest_statistics.go:127 +0x60
github.com/QuesmaOrg/quesma/platform/functionality/bulk.sendToClickhouse({0xc02f78, 0x4015dda210}, 0x0?, {0xf920c5f2d4b8, 0x40001ea408}, 0x1, 0x4000323400)
/platform/functionality/bulk/bulk.go:274 +0x18c
```1 parent ad9b27c commit 4e03bae
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
0 commit comments