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

broker: fix a problem bootstrapping under openpmix PMI-1 compat library #2748

Merged
merged 1 commit into from Feb 15, 2020

Conversation

garlick
Copy link
Member

@garlick garlick commented Feb 15, 2020

This PR gets around an apparent incompatibility with openpmix's PMI compat library by increasing the PMI kvsname buffer size used in the broker.

Edit: dropped flux-pfoxy(1) since @dongahn already submitted it as a separate PR.

Problem: openpmix's libpmi.so PMI_KVS_Get_my_name() fails with
PMI_ERR_INVALID_LENGTH if the kvsname buffer size is less than
its internal PMIX_MAX_NSLEN (255) value, regardless of the size
of the returned string.

Work around this by raising the broker's kvsname buffer size
from 64 to 1024 bytes.

Fixes flux-framework#2746
@dongahn
Copy link
Member

dongahn commented Feb 15, 2020

LGTM! Thanks.

@codecov-io
Copy link

Codecov Report

Merging #2748 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2748      +/-   ##
==========================================
+ Coverage   81.46%   81.48%   +0.02%     
==========================================
  Files         248      248              
  Lines       39025    39025              
==========================================
+ Hits        31790    31799       +9     
+ Misses       7235     7226       -9
Impacted Files Coverage Δ
src/cmd/flux-job.c 86.9% <0%> (+0.31%) ⬆️
src/common/libsubprocess/subprocess.c 88.54% <0%> (+0.32%) ⬆️
src/cmd/flux-exec.c 77.09% <0%> (+0.44%) ⬆️
src/common/libsubprocess/server.c 71.83% <0%> (+0.84%) ⬆️

Copy link
Contributor

@grondo grondo left a comment

Choose a reason for hiding this comment

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

👍

@mergify mergify bot merged commit 82b2ea4 into flux-framework:master Feb 15, 2020
@garlick garlick deleted the small_fixes branch February 25, 2020 13:44
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.

None yet

4 participants