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

No FI_EBUSY error for GNI provider #1324

Open
dschraufna opened this issue Apr 11, 2017 · 0 comments
Open

No FI_EBUSY error for GNI provider #1324

dschraufna opened this issue Apr 11, 2017 · 0 comments
Labels

Comments

@dschraufna
Copy link

dschraufna commented Apr 11, 2017

When attempting to close an Address Vector that is still bound to an Endpoint, a -FI_EBUSY error should be returned. In the case of the GNI provider, no such error is returned; the return value is 0.
A -FI_EBUSY signal is properly returned for the sockets provider.

Man page reference: https://ofiwg.github.io/libfabric/v1.4.1/man/fi_av.3.html#fi_close

Rough code outline:

fi_av_open(domain, &av_attr, &target_av, NULL);
fi_ep_bind(endpoint, &target_av->fid, 0);
ret = fi_close(&target_av->fid);
if (ret != -FI_EBUSY) { 
   //We failed to get the expected error
   printf("%d\n", ret); //Returns 0 in the case of GNI provider 
} else { 
   //We received FI_EBUSY signal. Tests passes.
}

Let me know if I can provide any additional info.

@hppritcha hppritcha added the bug label Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants