Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processor/logdeduplication] Review processor shutdown behaviour #34478

Closed
MikeGoldsmith opened this issue Aug 7, 2024 · 5 comments
Closed
Assignees

Comments

@MikeGoldsmith
Copy link
Member

MikeGoldsmith commented Aug 7, 2024

This is a tracking issue for reviewing the shutdown behaviour in the new logdeduplication processor.

          Is all of this extraneous? Create a local done channel, listen for it to close, but defer closing it?

The only thing somewhat useful this might be doing is returning ctx.Err() in the case where the passed in context is canceled while we're shutting down. I'm not convinced that's useful though and not aware of any other cases where we do that in Shutdown.

Originally posted by @djaglowski in #34465 (comment)

@codeboten
Copy link
Contributor

Thanks for volunteering to take this on @MikeGoldsmith

Copy link
Contributor

github-actions bot commented Aug 8, 2024

Pinging code owners for processor/logdeduplication: @BinaryFissionGames @MikeGoldsmith @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

djaglowski pushed a commit that referenced this issue Aug 9, 2024
**Description:** <Describe what has changed.>
Simplifies the processor shutdown behaviour by removing the unnecessary
done channel.

**Link to tracking Issue:**

- #34478 

**Testing:**

Updated unit test verifying shutdown behaviour.

**Documentation:**

N/A
@MikeGoldsmith
Copy link
Member Author

Fixed in #34563

Copy link
Contributor

Pinging code owners for processor/logdedup: @BinaryFissionGames @MikeGoldsmith @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Sorry for the ping, I'm updating labels to the correct name of the processor to properly show up in queries for this component.

f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this issue Sep 12, 2024
)

**Description:** <Describe what has changed.>
Simplifies the processor shutdown behaviour by removing the unnecessary
done channel.

**Link to tracking Issue:**

- open-telemetry#34478 

**Testing:**

Updated unit test verifying shutdown behaviour.

**Documentation:**

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants