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

agents: fix OTLPAgent race conditions on cleanup #30

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

santigimeno
Copy link
Member

Move the exit_lock_ out of the class and make it static so we can use it even if the agent has been deleted.
Also, make sure we use the exit_lock_ in OTLPAgent::config_msg_cb_.

Fixes: #29

@santigimeno santigimeno self-assigned this Nov 23, 2023
Move the `exit_lock_` out of the class and make it static so we can use
it even if the agent has been deleted.
Also, make sure we use the `exit_lock_` in `OTLPAgent::config_msg_cb_`.

Fixes: #29
PR-URL: #30
Reviewed-by: Trevor Norris <[email protected]>
@santigimeno santigimeno merged commit 1a1236e into node-v20.x-nsolid-v5.x Nov 30, 2023
15 of 18 checks passed
@santigimeno santigimeno deleted the santi/otlp_agent branch November 30, 2023 22:41
trevnorris pushed a commit that referenced this pull request Nov 30, 2023
Move the `exit_lock_` out of the class and make it static so we can use
it even if the agent has been deleted.
Also, make sure we use the `exit_lock_` in `OTLPAgent::config_msg_cb_`.

Fixes: #29
PR-URL: #30
Reviewed-by: Trevor Norris <[email protected]>
santigimeno added a commit that referenced this pull request Dec 6, 2023
Move the `exit_lock_` out of the class and make it static so we can use
it even if the agent has been deleted.
Also, make sure we use the `exit_lock_` in `OTLPAgent::config_msg_cb_`.

Fixes: #29
PR-URL: #30
Reviewed-by: Trevor Norris <[email protected]>
trevnorris pushed a commit that referenced this pull request Dec 7, 2023
Move the `exit_lock_` out of the class and make it static so we can use
it even if the agent has been deleted.
Also, make sure we use the `exit_lock_` in `OTLPAgent::config_msg_cb_`.

Fixes: #29
PR-URL: #30
Reviewed-by: Trevor Norris <[email protected]>
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.

Crash on OTLPAgent when running tests under load
2 participants