-
Notifications
You must be signed in to change notification settings - Fork 22
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
Management/Communication of Not Supported operations. #6
Comments
(From discussion at March 23, 2018 face-to-face)
|
@rhc54 had an example roughly like this. The client registers different callback data (potentially) at every call site providing context about that call site. The event handler chain and user's callback function manages the processing of the event handler. The main calling thread can wait for that event to be processed to control what to do next.
|
Counter example: Process:
Race in the event chain
How does Can we use the Already adding to the 'info' array for the event for "not supported" to provide context. |
Per teleconf - Ralph has some text to clarify this harnessing the event functionality (the PRL needs some work to fully support this). |
Sigh - this came up again just yesterday via another use-case. I'll raise it on my priority, but it (obviously) won't be for v2 of the standard. |
Changed the milestone - I don't think we can do this for v3 as v3.0.0 has already been released, so I moved it out to v4 |
The PMIx standard allows any implementation to return
PMIX_ERR_NOT_SUPPORTED
for any request. Users of the API must be prepared to handle this case.The central questions are:
PMIX_ERR_NOT_SUPPORTED
supposed to be returned? In a blocking operation, it should be at the call site. In a non-blocking operation, that might not be possible without blocking until the request is processed by the RM. Should it be returned in the callback then?PMIx_Query_support
function where a user can ask:NOT_SUPPORTED
,NOT_SUPPORTED_ATTRIBUTE
,NOT_SUPPORTED_ATTRIBUTE_SET
, ``NOT_SUPPORTED_REQUEST`)PMIx_Query_support
function even useful for an application, or is the error code at the call site (or callback) enough?perror
-like interface for the PMIx implementation to return a string explaining the reason why it returned "not supported"?Below are some error codes that could be used/extended.
Note that any info key can be marked a
PMIX_INFO_REQUIRED(m)
which means that the PMIx implementation must return an error if does not support that attribute, instead of possibly ignoring it.The text was updated successfully, but these errors were encountered: