Replies: 1 comment 1 reply
-
Quickly looking at the code it seems the comment on draining is not accurate. I think that on shutdown the items that were left in memory and not picked up by the workers will be essentially dropped. I think it's worth opening an issue on that BTW, this problem is largely mitigated by using persistent queue (experimental). The unprocessed items will be picked up after collector restart |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! We have a question about shutdown the
queuedRetrySender
.In https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/queued_retry_inmemory.go#L147 comments, it seems will drain the queue before shutdown the
queuedRetrySender
.But in https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/internal/bounded_memory_queue.go#L83, while the
select
run into thecase <-q.stopCh
, it will return and then the items in queue will not be consumed byitemConsumer
. Are we understand correctly or missing some key points?Beta Was this translation helpful? Give feedback.
All reactions