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

Fix ldmsd_stream_subscribe intermingled events output #1255

Merged

Conversation

narategithub
Copy link
Collaborator

Multiple threads in ldmsd_stream_subscribe can race to handle stream recv events. The recv handler called msglog() multiple times to print out the EVENT. This lead to intermingled events in the output. This patch modifies the handler to print the events in single msglog call to avoid the intermingled output.

Multiple threads in `ldmsd_stream_subscribe` can race to handle stream
recv events. The recv handler called `msglog()` multiple times to print
out the EVENT. This lead to intermingled events in the output. This
patch modifies the handler to print the events in single msglog call to
avoid the intermingled output.
@narategithub
Copy link
Collaborator Author

narategithub commented Aug 11, 2023

@tom95858 why do you close this one? I think we need this.

@tom95858
Copy link
Collaborator

We had two versions of this...yes? Or is it a different pull request. I thought you had a different fix.

@tom95858 tom95858 reopened this Aug 11, 2023
@narategithub
Copy link
Collaborator Author

We have 2 version of this fix. This version is a lot easier to read than the other one.

@tom95858 tom95858 merged commit 1e4c27f into ovis-hpc:OVIS-4 Aug 13, 2023
28 checks passed
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