Commit ee7e730
committed
Fix oltp exporter shutdown race condition
Exports can start after the lock is acquired but before the shutdown flag is set, this raises an error if the channel has already been closed.
Avoid this race condition by setting the shutdown flag before acquiring the lock.1 parent 534cd38 commit ee7e730
File tree
2 files changed
+4
-1
lines changed- exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
359 | 361 | | |
360 | 362 | | |
361 | | - | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
0 commit comments