Closed as not planned
Description
Describe your environment
OTel packages v1.11.1 and v0.30b1.
Python 3.8.11 but Python version should be irrelevant to this problem.
Bug spotted on MacOS, but should happen on all systems.
Steps to reproduce
This is really hard to reproduce because it depends heavily on timing. It's probably a race condition among threads.
What is the expected behavior?
Not see the exception.
What is the actual behavior?
This is the exception:
Traceback (most recent call last):
File "/.../site-packages/opentelemetry/sdk/trace/export/__init__.py" line 358 in _export_batch
self.span_exporter.export(self.spans_list[:idx]) # type: ignore
File "/.../site-packages/opentelemetry/exporter/jaeger/thrift/__init__.py" line 219 in export
self._agent_client.emit(batch)
File "/.../site-packages/opentelemetry/exporter/jaeger/thrift/send.py" line 70 in emit
self.client.emitBatch(batch)
File "/.../site-packages/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent.py" line 61 in emitBatch
self.send_emitBatch(batch)
File "/.../site-packages/opentelemetry/exporter/jaeger/thrift/gen/agent/Agent.py" line 64 in send_emitBatch
self._oprot.writeMessageBegin('emitBatch', TMessageType.ONEWAY, self._seqid)
File "/.../site-packages/thrift/protocol/TCompactProtocol.py" line 157 in writeMessageBegin
assert self.state == CLEAR
AssertionError
Additional context
None.