Commit d63bc56
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 d63bc56
File tree
1 file changed
+2
-1
lines changed- exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc
1 file changed
+2
-1
lines changedLines 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