Commit 8af7455
committed
Fix ES integration test race conditions
This change fixes two issues in ES integration tests:
1. Prevents index not found exceptions by proper index readiness checks
2. Prevents duplicate span detection issues
The solution uses sync.Map for thread-safe:
- Index existence caching
- Span tracking
Fixes jaegertracing#6094
Signed-off-by: ayush-gupta-dev <[email protected]>1 parent 50eeed3 commit 8af7455
1 file changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 204 | + | |
| 205 | + | |
209 | 206 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
217 | 213 | | |
218 | 214 | | |
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
222 | 218 | | |
223 | | - | |
224 | | - | |
| 219 | + | |
| 220 | + | |
225 | 221 | | |
226 | 222 | | |
227 | | - | |
228 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
0 commit comments