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

sharedfp/lockedfile and sm: fix name collision #3105

Merged

Conversation

edgargabriel
Copy link
Member

this fixes the issue reported by Nicolas Joly on the mailing: the sharedfp/lockedfile component does not support right now a scenario where multiple jobs read from the same input file, due to a collision of the filenames utilized for the sharedfp handle. Although not part of the oroginal report, the same occurs for the sharedfp/sm component. Add therefore the jobid to be part of the lockedfilename/sm file name.

use the OMPI_CAST_RTE_NAME macro to determine jobid

Fixes: #3098

Signed-off-by: Edgar Gabriel egabriel@central.uh.edu

this fixes the issue reported by Nicolas Joly on the mailing: the sharedfp/lockedfile component does not support right now a scenario where multiple jobs read from the same input file, due to a collision of the filenames utilized for the sharedfp handle. Although not part of the oroginal report, the same occurs for the sharedfp/sm component. Add therefore the jobid to be part of the lockedfilename/sm file name.

use the OMPI_CAST_RTE_NAME macro to determine jobid

Fixes: open-mpi#3098

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
@edgargabriel edgargabriel requested a review from rhc54 March 6, 2017 00:15
@edgargabriel edgargabriel added this to the v2.1.0 milestone Mar 6, 2017
@hppritcha
Copy link
Member

@edgargabriel do you consider this an "edge" case? Or is it a common enough use case that we need to spin another rc candidate for v2.1.0? I'm learning toward the edge case and moving the milestone for this to v2.1.1. I would be okay with this leading to another rc if the report came from part of rc testing, but it looks like the user was working with 2.0.1

@jsquyres

@edgargabriel
Copy link
Member Author

It is probably more an edge case. The way I would look at it is: if you need to spin another rc candidate anyway, we could integrate this pr as well. Otherwise lets wait for 2.1.1

@hppritcha
Copy link
Member

@jsquyres I think we should go ahead and merge in since we're waiting on other fixes anyway.

@jsquyres
Copy link
Member

jsquyres commented Mar 7, 2017

Per discussion on the Webex today, we're going to merge this because the mallopocalypse is going to force another rc.

@jsquyres jsquyres merged commit 763b5e0 into open-mpi:v2.x Mar 7, 2017
@edgargabriel edgargabriel deleted the pr/sharedfp-name-collision-fix-v2.x branch July 17, 2017 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants