Skip to content

Fixes hang introduced by logging in sp_init(). #80

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

rountree
Copy link

Logging initialization relies on environment variables, and some of those variables originate in the flux shell. Initiali- zation prior to those values being transferred can result in a hang.

This PR moves the transfer code into flux_plugin_init(), which is the first spindle-provided callback to be executed.

Passes all runTests on Tuolumne.

Fixes #79

Logging initialization relies on environment variables, and
some of those variables originate in the flux shell.  Initiali-
zation prior to those values being transferred can result in a
hang.

This PR moves the transfer code into flux_plugin_init(), which is
the first spindle-provided callback to be executed.

Passes all runTests on Tuolumne.
@mplegendre
Copy link
Member

Thanks for the reminder on this.

This is already fixed in devel. I moved the SPINDLE_TEST environment handling to above the first debug_print in sp_init() in a recent-ish commit. I think that has the same effect as these changes.

Moving to flux_plugin_init, as this PR does, is probably better. It'll harder to make a future mistake and put a debug_print to early in sp_init(). But this no longer fixes anything and probably doesn't have the priority it used to. You can either cleanup the conflict and re-submit this--I'll merge it. Or we can just close it out.

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.

Logging early in sp_init() causes hang.
3 participants