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 errno report in blobwriter, stop warning about repeat subscribe #1567

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

baallan
Copy link
Collaborator

@baallan baallan commented Dec 18, 2024

fix errno misreported in blobwriter, and stop warning about repeat subscribe, which happens a lot (50000 out of 55000 log lines in a recent case)

@baallan baallan added this to the v4.4.5 milestone Dec 18, 2024
@baallan
Copy link
Collaborator Author

baallan commented Dec 18, 2024

@tom95858 sorry for the late patch; things turned up in logs yesterday.

@@ -346,8 +346,11 @@ ldmsd_stream_subscribe(const char *stream_name,
}
LIST_FOREACH(cc, &s->s_c_list, c_ent) {
if (cc->c_cb_fn == cb_fn && cc->c_ctxt == ctxt) {
#if 0
/* this is a high frequency common case */
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like we're hiding a configuration error and it has nothing to do with this fix.

@@ -246,6 +246,7 @@ static void fclose_and_spool(FILE* *f, char* *fname, int final)
sprintf(rbuf, "%s/spool/%s", dirn, base);
err = rename(*fname, rbuf);
if (err) {
err = errno;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This code doesn't do anything. The function returns void.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@baallan, ok I see that you're setting it so that the error message is correct.

@tom95858 tom95858 merged commit c8d6b2f into ovis-hpc:b4.4 Dec 21, 2024
14 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.

3 participants