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 ZmqAgent asset JS API #192

Closed
wants to merge 1 commit into from

Conversation

santigimeno
Copy link
Member

When using the JS API to retrieve specific assets and send them to the Console, there was some code paths where the data would be pushed to the Zmq sockets from the JS thread instead of the agent thread. This is a serious bug that could cause unexpected breakage. Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also support Heap Snapshots and use it in the agent.

@santigimeno santigimeno self-assigned this Oct 11, 2024
When using the JS API to retrieve specific assets and send them to the
Console, there was some code paths where the data would be pushed to
the Zmq sockets from the JS thread instead of the agent thread. This is
a serious bug that could cause unexpected breakage.
Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also
support Heap Snapshots and use it in the agent.
santigimeno added a commit that referenced this pull request Oct 14, 2024
When using the JS API to retrieve specific assets and send them to the
Console, there was some code paths where the data would be pushed to
the Zmq sockets from the JS thread instead of the agent thread. This is
a serious bug that could cause unexpected breakage.
Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also
support Heap Snapshots and use it in the agent.

PR-URL: #192
Reviewed-By: Trevor Norris <[email protected]>
@santigimeno
Copy link
Member Author

#192

santigimeno added a commit that referenced this pull request Oct 16, 2024
When using the JS API to retrieve specific assets and send them to the
Console, there was some code paths where the data would be pushed to
the Zmq sockets from the JS thread instead of the agent thread. This is
a serious bug that could cause unexpected breakage.
Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also
support Heap Snapshots and use it in the agent.

PR-URL: #192
Reviewed-By: Trevor Norris <[email protected]>
trevnorris pushed a commit that referenced this pull request Oct 29, 2024
When using the JS API to retrieve specific assets and send them to the
Console, there was some code paths where the data would be pushed to
the Zmq sockets from the JS thread instead of the agent thread. This is
a serious bug that could cause unexpected breakage.
Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also
support Heap Snapshots and use it in the agent.

PR-URL: #192
Reviewed-By: Trevor Norris <[email protected]>
trevnorris pushed a commit that referenced this pull request Oct 30, 2024
When using the JS API to retrieve specific assets and send them to the
Console, there was some code paths where the data would be pushed to
the Zmq sockets from the JS thread instead of the agent thread. This is
a serious bug that could cause unexpected breakage.
Refactor the code to actually avoid the issue.
Also took the opportunity to expand the ProfileCollector class to also
support Heap Snapshots and use it in the agent.

PR-URL: #192
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.

2 participants