Skip to content

agents: fix OTLPAgent race conditions on cleanup#30

Merged
santigimeno merged 1 commit intonode-v20.x-nsolid-v5.xfrom
santi/otlp_agent
Nov 30, 2023
Merged

agents: fix OTLPAgent race conditions on cleanup#30
santigimeno merged 1 commit intonode-v20.x-nsolid-v5.xfrom
santi/otlp_agent

Conversation

@santigimeno
Copy link
Copy Markdown
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 <trev.norris@gmail.com>
@santigimeno santigimeno merged commit 1a1236e into node-v20.x-nsolid-v5.x Nov 30, 2023
@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 <trev.norris@gmail.com>
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 <trev.norris@gmail.com>
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 <trev.norris@gmail.com>
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