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

Stop any harvests while reconnecting #1251

Merged
merged 4 commits into from
Sep 29, 2022
Merged

Conversation

vuqtran88
Copy link
Contributor

@vuqtran88 vuqtran88 commented Sep 27, 2022

Description

In an edge case where a user sets to disable event collection for specific event types from the New Relic APM UI and the agent is issued a reconnect, the agent still sends up the disabled events during the agent reconnecting period.

During the agent reconnecting window, all of the configuration settings get reset to the default values while waiting for the configuration setting backend negotiation to complete. This causes some events still being collected and sent up during this time period regardless some events collection were explicitly disabled.

This PR proposes a fix where the agent stops any scheduled Harvest during the agent's reconnecting process.

@vuqtran88 vuqtran88 changed the title Stop any harvests while reconnecting [DRAFT] Stop any harvests while reconnecting Sep 28, 2022
Copy link
Contributor

@JcolemanNR JcolemanNR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me and should prevent any rogue harvest cycles during agent reconnect!

@vuqtran88 vuqtran88 merged commit 3bd7643 into main Sep 29, 2022
@vuqtran88 vuqtran88 deleted the fix-configuration-update-bug branch September 29, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants