2008-02-28 04:57:57 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2011-06-24 00:38:02 +04:00
|
|
|
* Copyright (c) 2004-2011 The University of Tennessee and The University
|
2008-02-28 04:57:57 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2008-02-28 04:57:57 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2009-01-11 05:30:00 +03:00
|
|
|
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
2016-08-05 00:23:06 +03:00
|
|
|
* Copyright (c) 2012-2016 Los Alamos National Security, LLC.
|
As per the RFC, bring in the ORTE async progress code and the rewrite of OOB:
*** THIS RFC INCLUDES A MINOR CHANGE TO THE MPI-RTE INTERFACE ***
Note: during the course of this work, it was necessary to completely separate the MPI and RTE progress engines. There were multiple places in the MPI layer where ORTE_WAIT_FOR_COMPLETION was being used. A new OMPI_WAIT_FOR_COMPLETION macro was created (defined in ompi/mca/rte/rte.h) that simply cycles across opal_progress until the provided flag becomes false. Places where the MPI layer blocked waiting for RTE to complete an event have been modified to use this macro.
***************************************************************************************
I am reissuing this RFC because of the time that has passed since its original release. Since its initial release and review, I have debugged it further to ensure it fully supports tests like loop_spawn. It therefore seems ready for merge back to the trunk. Given its prior review, I have set the timeout for one week.
The code is in https://bitbucket.org/rhc/ompi-oob2
WHAT: Rewrite of ORTE OOB
WHY: Support asynchronous progress and a host of other features
WHEN: Wed, August 21
SYNOPSIS:
The current OOB has served us well, but a number of limitations have been identified over the years. Specifically:
* it is only progressed when called via opal_progress, which can lead to hangs or recursive calls into libevent (which is not supported by that code)
* we've had issues when multiple NICs are available as the code doesn't "shift" messages between transports - thus, all nodes had to be available via the same TCP interface.
* the OOB "unloads" incoming opal_buffer_t objects during the transmission, thus preventing use of OBJ_RETAIN in the code when repeatedly sending the same message to multiple recipients
* there is no failover mechanism across NICs - if the selected NIC (or its attached switch) fails, we are forced to abort
* only one transport (i.e., component) can be "active"
The revised OOB resolves these problems:
* async progress is used for all application processes, with the progress thread blocking in the event library
* each available TCP NIC is supported by its own TCP module. The ability to asynchronously progress each module independently is provided, but not enabled by default (a runtime MCA parameter turns it "on")
* multi-address TCP NICs (e.g., a NIC with both an IPv4 and IPv6 address, or with virtual interfaces) are supported - reachability is determined by comparing the contact info for a peer against all addresses within the range covered by the address/mask pairs for the NIC.
* a message that arrives on one TCP NIC is automatically shifted to whatever NIC that is connected to the next "hop" if that peer cannot be reached by the incoming NIC. If no TCP module will reach the peer, then the OOB attempts to send the message via all other available components - if none can reach the peer, then an "error" is reported back to the RML, which then calls the errmgr for instructions.
* opal_buffer_t now conforms to standard object rules re OBJ_RETAIN as we no longer "unload" the incoming object
* NIC failure is reported to the TCP component, which then tries to resend the message across any other available TCP NIC. If that doesn't work, then the message is given back to the OOB base to try using other components. If all that fails, then the error is reported to the RML, which reports to the errmgr for instructions
* obviously from the above, multiple OOB components (e.g., TCP and UD) can be active in parallel
* the matching code has been moved to the RML (and out of the OOB/TCP component) so it is independent of transport
* routing is done by the individual OOB modules (as opposed to the RML). Thus, both routed and non-routed transports can simultaneously be active
* all blocking send/recv APIs have been removed. Everything operates asynchronously.
KNOWN LIMITATIONS:
* although provision is made for component failover as described above, the code for doing so has not been fully implemented yet. At the moment, if all connections for a given peer fail, the errmgr is notified of a "lost connection", which by default results in termination of the job if it was a lifeline
* the IPv6 code is present and compiles, but is not complete. Since the current IPv6 support in the OOB doesn't work anyway, I don't consider this a blocker
* routing is performed at the individual module level, yet the active routed component is selected on a global basis. We probably should update that to reflect that different transports may need/choose to route in different ways
* obviously, not every error path has been tested nor necessarily covered
* determining abnormal termination is more challenging than in the old code as we now potentially have multiple ways of connecting to a process. Ideally, we would declare "connection failed" when *all* transports can no longer reach the process, but that requires some additional (possibly complex) code. For now, the code replicates the old behavior only somewhat modified - i.e., if a module sees its connection fail, it checks to see if it is a lifeline. If so, it notifies the errmgr that the lifeline is lost - otherwise, it notifies the errmgr that a non-lifeline connection was lost.
* reachability is determined solely on the basis of a shared subnet address/mask - more sophisticated algorithms (e.g., the one used in the tcp btl) are required to handle routing via gateways
* the RML needs to assign sequence numbers to each message on a per-peer basis. The receiving RML will then deliver messages in order, thus preventing out-of-order messaging in the case where messages travel across different transports or a message needs to be redirected/resent due to failure of a NIC
This commit was SVN r29058.
2013-08-22 20:37:40 +04:00
|
|
|
* All rights reserved
|
2016-10-23 21:36:05 +03:00
|
|
|
* Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
|
2016-12-20 09:23:12 +03:00
|
|
|
* Copyright (c) 2017 Research Organization for Information Science
|
|
|
|
* and Technology (RIST). All rights reserved.
|
2008-02-28 04:57:57 +03:00
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2008-02-28 04:57:57 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2008-02-28 04:57:57 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/constants.h"
|
|
|
|
#include "orte/types.h"
|
|
|
|
|
2009-04-29 04:49:23 +04:00
|
|
|
#include <string.h>
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#ifdef HAVE_SYS_TIME_H
|
|
|
|
#include <sys/time.h>
|
|
|
|
#endif
|
|
|
|
|
2015-12-16 02:26:13 +03:00
|
|
|
#include "opal/util/argv.h"
|
2009-03-18 00:34:30 +03:00
|
|
|
#include "opal/util/output.h"
|
2008-02-28 08:32:23 +03:00
|
|
|
#include "opal/class/opal_pointer_array.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "opal/dss/dss.h"
|
2015-08-31 06:54:45 +03:00
|
|
|
#include "opal/mca/pmix/pmix_types.h"
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
|
|
|
#include "orte/mca/rml/rml.h"
|
|
|
|
#include "orte/runtime/orte_globals.h"
|
|
|
|
#include "orte/util/name_fns.h"
|
2008-02-28 22:58:32 +03:00
|
|
|
#include "orte/runtime/orte_wait.h"
|
2011-06-24 00:38:02 +04:00
|
|
|
#include "orte/runtime/data_type_support/orte_dt_support.h"
|
2008-02-28 04:57:57 +03:00
|
|
|
|
|
|
|
#include "orte/runtime/orte_data_server.h"
|
|
|
|
|
|
|
|
/* define an object to hold data */
|
|
|
|
typedef struct {
|
|
|
|
/* base object */
|
|
|
|
opal_object_t super;
|
|
|
|
/* index of this object in the storage array */
|
|
|
|
orte_std_cntr_t index;
|
|
|
|
/* process that owns this data - only the
|
|
|
|
* owner can remove it
|
|
|
|
*/
|
|
|
|
orte_process_name_t owner;
|
2015-08-31 06:54:45 +03:00
|
|
|
/* uid of the owner - helps control
|
|
|
|
* access rights */
|
|
|
|
uint32_t uid;
|
|
|
|
/* characteristics */
|
|
|
|
opal_pmix_data_range_t range;
|
|
|
|
opal_pmix_persistence_t persistence;
|
|
|
|
/* and the values themselves */
|
|
|
|
opal_list_t values;
|
|
|
|
/* the value itself */
|
2008-02-28 04:57:57 +03:00
|
|
|
} orte_data_object_t;
|
|
|
|
|
|
|
|
static void construct(orte_data_object_t *ptr)
|
|
|
|
{
|
|
|
|
ptr->index = -1;
|
2016-06-25 03:01:49 +03:00
|
|
|
ptr->uid = UINT32_MAX;
|
|
|
|
ptr->range = OPAL_PMIX_RANGE_UNDEF;
|
|
|
|
ptr->persistence = OPAL_PMIX_PERSIST_SESSION;
|
2015-08-31 06:54:45 +03:00
|
|
|
OBJ_CONSTRUCT(&ptr->values, opal_list_t);
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static void destruct(orte_data_object_t *ptr)
|
|
|
|
{
|
2015-08-31 06:54:45 +03:00
|
|
|
OPAL_LIST_DESTRUCT(&ptr->values);
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(orte_data_object_t,
|
|
|
|
opal_object_t,
|
|
|
|
construct, destruct);
|
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
/* define a request object for delayed answers */
|
|
|
|
typedef struct {
|
|
|
|
opal_list_item_t super;
|
|
|
|
orte_process_name_t requestor;
|
2015-09-05 21:19:41 +03:00
|
|
|
int room_number;
|
2015-09-04 18:29:09 +03:00
|
|
|
uint32_t uid;
|
|
|
|
opal_pmix_data_range_t range;
|
|
|
|
char **keys;
|
|
|
|
} orte_data_req_t;
|
|
|
|
static void rqcon(orte_data_req_t *p)
|
|
|
|
{
|
|
|
|
p->keys = NULL;
|
|
|
|
}
|
|
|
|
static void rqdes(orte_data_req_t *p)
|
|
|
|
{
|
|
|
|
opal_argv_free(p->keys);
|
|
|
|
}
|
|
|
|
OBJ_CLASS_INSTANCE(orte_data_req_t,
|
|
|
|
opal_list_item_t,
|
|
|
|
rqcon, rqdes);
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
/* local globals */
|
2015-08-31 06:54:45 +03:00
|
|
|
static opal_pointer_array_t orte_data_server_store;
|
2015-09-04 18:29:09 +03:00
|
|
|
static opal_list_t pending;
|
2015-09-22 06:31:57 +03:00
|
|
|
static bool initialized = false;
|
2008-02-28 04:57:57 +03:00
|
|
|
|
|
|
|
int orte_data_server_init(void)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
2015-09-22 06:31:57 +03:00
|
|
|
if (initialized) {
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
initialized = true;
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
OBJ_CONSTRUCT(&orte_data_server_store, opal_pointer_array_t);
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_pointer_array_init(&orte_data_server_store,
|
2008-02-28 04:57:57 +03:00
|
|
|
1,
|
|
|
|
INT_MAX,
|
|
|
|
1))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
OBJ_CONSTRUCT(&pending, opal_list_t);
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
orte_rml.recv_buffer_nb(ORTE_NAME_WILDCARD,
|
|
|
|
ORTE_RML_TAG_DATA_SERVER,
|
|
|
|
ORTE_RML_PERSISTENT,
|
|
|
|
orte_data_server,
|
|
|
|
NULL);
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
void orte_data_server_finalize(void)
|
|
|
|
{
|
|
|
|
orte_std_cntr_t i;
|
2015-08-31 06:54:45 +03:00
|
|
|
orte_data_object_t *data;
|
2008-02-28 04:57:57 +03:00
|
|
|
|
2015-09-22 06:31:57 +03:00
|
|
|
if (!initialized) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
initialized = false;
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
for (i=0; i < orte_data_server_store.size; i++) {
|
|
|
|
if (NULL != (data = (orte_data_object_t*)opal_pointer_array_get_item(&orte_data_server_store, i))) {
|
|
|
|
OBJ_RELEASE(data);
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
OBJ_DESTRUCT(&orte_data_server_store);
|
2015-09-04 18:29:09 +03:00
|
|
|
OPAL_LIST_DESTRUCT(&pending);
|
2012-04-06 18:23:13 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void orte_data_server(int status, orte_process_name_t* sender,
|
|
|
|
opal_buffer_t* buffer, orte_rml_tag_t tag,
|
|
|
|
void* cbdata)
|
2008-02-28 04:57:57 +03:00
|
|
|
{
|
2015-08-31 06:54:45 +03:00
|
|
|
uint8_t command;
|
2008-02-28 04:57:57 +03:00
|
|
|
orte_std_cntr_t count;
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_process_name_t requestor;
|
2008-02-28 04:57:57 +03:00
|
|
|
orte_data_object_t *data;
|
2015-09-04 18:29:09 +03:00
|
|
|
opal_buffer_t *answer, *reply;
|
2015-08-31 06:54:45 +03:00
|
|
|
int rc, ret, k;
|
|
|
|
opal_value_t *iptr, *inext;
|
|
|
|
uint32_t ninfo, i;
|
|
|
|
char **keys = NULL, *str;
|
2015-09-13 22:59:26 +03:00
|
|
|
bool ret_packed = false, wait = false, data_added;
|
2015-08-31 06:54:45 +03:00
|
|
|
int room_number;
|
2016-06-25 03:01:49 +03:00
|
|
|
uint32_t uid = UINT32_MAX;
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_pmix_data_range_t range;
|
2015-09-04 18:29:09 +03:00
|
|
|
orte_data_req_t *req, *rqnext;
|
2016-08-05 00:23:06 +03:00
|
|
|
orte_jobid_t jobid = ORTE_JOBID_INVALID;
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server got message from %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(sender)));
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the room number of the caller's request */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &room_number, &count, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* unpack the command */
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2015-08-31 06:54:45 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &command, &count, OPAL_UINT8))) {
|
2008-02-28 04:57:57 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2012-04-06 18:23:13 +04:00
|
|
|
answer = OBJ_NEW(opal_buffer_t);
|
2015-08-31 06:54:45 +03:00
|
|
|
/* pack the room number as this must lead any response */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &room_number, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
OBJ_RELEASE(answer);
|
|
|
|
return;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
switch(command) {
|
2015-08-31 06:54:45 +03:00
|
|
|
case ORTE_PMIX_PUBLISH_CMD:
|
|
|
|
data = OBJ_NEW(orte_data_object_t);
|
2016-06-25 03:01:49 +03:00
|
|
|
/* unpack the publisher */
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2015-08-31 06:54:45 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &data->owner, &count, OPAL_NAME))) {
|
2013-08-14 08:21:17 +04:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2015-08-31 06:54:45 +03:00
|
|
|
OBJ_RELEASE(data);
|
2013-08-14 08:21:17 +04:00
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: publishing data from %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(&data->owner)));
|
|
|
|
|
|
|
|
/* unpack the range */
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2016-06-25 03:01:49 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &data->range, &count, OPAL_PMIX_DATA_RANGE))) {
|
2013-08-14 08:21:17 +04:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2015-08-31 06:54:45 +03:00
|
|
|
OBJ_RELEASE(data);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
/* unpack the persistence */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &data->persistence, &count, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
OBJ_RELEASE(data);
|
2013-08-14 08:21:17 +04:00
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2015-09-04 18:29:09 +03:00
|
|
|
while (ORTE_SUCCESS == (rc = opal_dss.unpack(buffer, &iptr, &count, OPAL_VALUE))) {
|
|
|
|
/* if this is the userid, separate it out */
|
|
|
|
if (0 == strcmp(iptr->key, OPAL_PMIX_USERID)) {
|
|
|
|
data->uid = iptr->data.uint32;
|
|
|
|
OBJ_RELEASE(iptr);
|
|
|
|
} else {
|
2015-09-13 22:59:26 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: adding %s to data from %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), iptr->key,
|
|
|
|
ORTE_NAME_PRINT(&data->owner)));
|
2015-09-04 18:29:09 +03:00
|
|
|
opal_list_append(&data->values, &iptr->super);
|
|
|
|
}
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
data->index = opal_pointer_array_add(&orte_data_server_store, data);
|
|
|
|
|
2015-09-05 21:19:41 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: checking for pending requests",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
/* check for pending requests that match this data */
|
|
|
|
reply = NULL;
|
|
|
|
OPAL_LIST_FOREACH_SAFE(req, rqnext, &pending, orte_data_req_t) {
|
|
|
|
if (req->uid != data->uid) {
|
|
|
|
continue;
|
|
|
|
}
|
2016-06-25 03:01:49 +03:00
|
|
|
/* if the published range is constrained to namespace, then only
|
|
|
|
* consider this data if the publisher is
|
|
|
|
* in the same namespace as the requestor */
|
|
|
|
if (OPAL_PMIX_RANGE_NAMESPACE == data->range) {
|
|
|
|
if (jobid != data->owner.jobid) {
|
|
|
|
continue;
|
|
|
|
}
|
2015-09-04 18:29:09 +03:00
|
|
|
}
|
|
|
|
for (i=0; NULL != req->keys[i]; i++) {
|
|
|
|
/* cycle thru the data keys for matches */
|
|
|
|
OPAL_LIST_FOREACH(iptr, &data->values, opal_value_t) {
|
|
|
|
if (0 == strcmp(iptr->key, req->keys[i])) {
|
|
|
|
/* found it - package it for return */
|
|
|
|
if (NULL == reply) {
|
|
|
|
reply = OBJ_NEW(opal_buffer_t);
|
2015-09-05 21:19:41 +03:00
|
|
|
/* start with their room number */
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(reply, &req->room_number, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
/* then the status */
|
2015-09-04 18:29:09 +03:00
|
|
|
ret = ORTE_SUCCESS;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(reply, &ret, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(reply, &data->owner, 1, OPAL_NAME))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
break;
|
|
|
|
}
|
2015-09-13 22:59:26 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: adding %s data from %s to response",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), iptr->key,
|
|
|
|
ORTE_NAME_PRINT(&data->owner)));
|
2015-09-04 18:29:09 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(reply, &iptr, 1, OPAL_VALUE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
}
|
2015-09-04 18:29:09 +03:00
|
|
|
}
|
|
|
|
if (NULL != reply) {
|
|
|
|
/* send it back to the requestor */
|
2015-09-05 21:19:41 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: returning data to %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(&req->requestor)));
|
|
|
|
|
2016-10-23 21:36:05 +03:00
|
|
|
if (0 > (rc = orte_rml.send_buffer_nb(orte_mgmt_conduit,
|
|
|
|
&req->requestor, reply, ORTE_RML_TAG_DATA_CLIENT,
|
2015-09-04 18:29:09 +03:00
|
|
|
orte_rml_send_callback, NULL))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
OBJ_RELEASE(reply);
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
2015-09-04 18:29:09 +03:00
|
|
|
/* remove this request */
|
|
|
|
opal_list_remove_item(&pending, &req->super);
|
|
|
|
OBJ_RELEASE(req);
|
|
|
|
reply = NULL;
|
2015-09-13 22:59:26 +03:00
|
|
|
/* if the persistence is "first_read", then delete this data */
|
|
|
|
if (OPAL_PMIX_PERSIST_FIRST_READ == data->persistence) {
|
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s NOT STORING DATA FROM %s AT INDEX %d",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(&data->owner), data->index));
|
|
|
|
opal_pointer_array_set_item(&orte_data_server_store, data->index, NULL);
|
|
|
|
OBJ_RELEASE(data);
|
|
|
|
goto release;
|
|
|
|
}
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-09-13 22:59:26 +03:00
|
|
|
release:
|
2013-08-14 08:21:17 +04:00
|
|
|
/* tell the user it was wonderful... */
|
|
|
|
ret = ORTE_SUCCESS;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &ret, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
/* if we can't pack it, we probably can't pack the
|
2015-08-31 06:54:45 +03:00
|
|
|
* rc value either, so just send whatever is there */
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
|
|
|
goto SEND_ANSWER;
|
|
|
|
break;
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
case ORTE_PMIX_LOOKUP_CMD:
|
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: lookup data from %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(sender)));
|
|
|
|
|
2016-06-25 03:01:49 +03:00
|
|
|
/* unpack the requestor's jobid */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &jobid, &count, ORTE_JOBID))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the range - this sets some constraints on the range of data to be considered */
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2016-06-25 03:01:49 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &range, &count, OPAL_PMIX_DATA_RANGE))) {
|
2013-08-14 08:21:17 +04:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the number of keys */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &ninfo, &count, OPAL_UINT32))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
if (0 == ninfo) {
|
|
|
|
/* they forgot to send us the keys?? */
|
2015-09-04 18:29:09 +03:00
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_BAD_PARAM);
|
2015-08-31 06:54:45 +03:00
|
|
|
rc = ORTE_ERR_BAD_PARAM;
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the keys */
|
|
|
|
for (i=0; i < ninfo; i++) {
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &str, &count, OPAL_STRING))) {
|
2008-02-28 04:57:57 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_argv_append_nosize(&keys, str);
|
|
|
|
free(str);
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
/* unpack any info elements */
|
|
|
|
count = 1;
|
2015-12-17 18:51:24 +03:00
|
|
|
uid = UINT32_MAX;
|
2015-09-04 18:29:09 +03:00
|
|
|
while (ORTE_SUCCESS == (rc = opal_dss.unpack(buffer, &iptr, &count, OPAL_VALUE))) {
|
|
|
|
/* if this is the userid, separate it out */
|
|
|
|
if (0 == strcmp(iptr->key, OPAL_PMIX_USERID)) {
|
|
|
|
uid = iptr->data.uint32;
|
|
|
|
} else if (0 == strcmp(iptr->key, OPAL_PMIX_WAIT)) {
|
|
|
|
/* flag that we wait until the data is present */
|
|
|
|
wait = true;
|
|
|
|
}
|
|
|
|
/* ignore anything else for now */
|
|
|
|
OBJ_RELEASE(iptr);
|
|
|
|
}
|
2015-12-17 18:51:24 +03:00
|
|
|
if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc || UINT32_MAX == uid) {
|
2015-09-04 18:29:09 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* cycle across the provided keys */
|
2015-09-04 18:29:09 +03:00
|
|
|
ret_packed = false;
|
2015-08-31 06:54:45 +03:00
|
|
|
for (i=0; NULL != keys[i]; i++) {
|
2015-09-13 22:59:26 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: looking for %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), keys[i]));
|
2015-08-31 06:54:45 +03:00
|
|
|
/* cycle across the stored data, looking for a match */
|
|
|
|
for (k=0; k < orte_data_server_store.size; k++) {
|
2015-09-13 22:59:26 +03:00
|
|
|
data_added = false;
|
2015-08-31 06:54:45 +03:00
|
|
|
data = (orte_data_object_t*)opal_pointer_array_get_item(&orte_data_server_store, k);
|
|
|
|
if (NULL == data) {
|
|
|
|
continue;
|
|
|
|
}
|
2016-06-25 03:01:49 +03:00
|
|
|
/* for security reasons, can only access data posted by the same user id */
|
2015-08-31 06:54:45 +03:00
|
|
|
if (uid != data->uid) {
|
|
|
|
continue;
|
|
|
|
}
|
2016-06-25 03:01:49 +03:00
|
|
|
/* if the published range is constrained to namespace, then only
|
|
|
|
* consider this data if the publisher is
|
|
|
|
* in the same namespace as the requestor */
|
|
|
|
if (OPAL_PMIX_RANGE_NAMESPACE == data->range) {
|
|
|
|
if (jobid != data->owner.jobid) {
|
|
|
|
continue;
|
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
}
|
|
|
|
/* see if we have this key */
|
|
|
|
OPAL_LIST_FOREACH(iptr, &data->values, opal_value_t) {
|
2015-09-13 22:59:26 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s COMPARING %s %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
keys[i], iptr->key));
|
2015-08-31 06:54:45 +03:00
|
|
|
if (0 == strcmp(iptr->key, keys[i])) {
|
|
|
|
/* found it - package it for return */
|
|
|
|
if (!ret_packed) {
|
|
|
|
ret = ORTE_SUCCESS;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &ret, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
ret_packed = true;
|
|
|
|
}
|
2015-09-13 22:59:26 +03:00
|
|
|
data_added = true;
|
2015-08-31 06:54:45 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &data->owner, 1, OPAL_NAME))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-09-13 22:59:26 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: adding %s to data from %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), iptr->key,
|
|
|
|
ORTE_NAME_PRINT(&data->owner)));
|
2015-08-31 06:54:45 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &iptr, 1, OPAL_VALUE))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-13 22:59:26 +03:00
|
|
|
if (data_added && OPAL_PMIX_PERSIST_FIRST_READ == data->persistence) {
|
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s REMOVING DATA FROM %s AT INDEX %d",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_NAME_PRINT(&data->owner), data->index));
|
|
|
|
opal_pointer_array_set_item(&orte_data_server_store, data->index, NULL);
|
|
|
|
OBJ_RELEASE(data);
|
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
}
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
if (!ret_packed) {
|
2015-09-05 21:19:41 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server:lookup: data not found",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
/* if we were told to wait for the data, then queue this up
|
|
|
|
* for later processing */
|
|
|
|
if (wait) {
|
2015-09-05 21:19:41 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server:lookup: pushing request to wait",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
2017-01-23 07:58:48 +03:00
|
|
|
OBJ_RELEASE(answer);
|
2015-09-04 18:29:09 +03:00
|
|
|
req = OBJ_NEW(orte_data_req_t);
|
2015-09-05 21:19:41 +03:00
|
|
|
req->room_number = room_number;
|
2015-09-04 18:29:09 +03:00
|
|
|
req->requestor = *sender;
|
|
|
|
req->uid = uid;
|
|
|
|
req->range = range;
|
|
|
|
req->keys = keys;
|
2015-09-05 21:19:41 +03:00
|
|
|
opal_list_append(&pending, &req->super);
|
2015-09-04 18:29:09 +03:00
|
|
|
return;
|
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
/* nothing was found - indicate that situation */
|
|
|
|
rc = ORTE_ERR_NOT_FOUND;
|
2015-09-04 18:29:09 +03:00
|
|
|
opal_argv_free(keys);
|
2015-08-31 06:54:45 +03:00
|
|
|
goto SEND_ERROR;
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
2015-09-13 22:59:26 +03:00
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
opal_argv_free(keys);
|
2015-09-05 21:19:41 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server:lookup: data found",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
2013-08-14 08:21:17 +04:00
|
|
|
goto SEND_ANSWER;
|
|
|
|
break;
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
case ORTE_PMIX_UNPUBLISH_CMD:
|
|
|
|
/* unpack the requestor */
|
2013-08-14 08:21:17 +04:00
|
|
|
count = 1;
|
2015-08-31 06:54:45 +03:00
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &requestor, &count, OPAL_NAME))) {
|
2013-08-14 08:21:17 +04:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2008-02-28 04:57:57 +03:00
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
2015-08-31 06:54:45 +03:00
|
|
|
"%s data server: unpublish data from %s",
|
2013-08-14 08:21:17 +04:00
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
2015-08-31 06:54:45 +03:00
|
|
|
ORTE_NAME_PRINT(&requestor)));
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the range - this sets some constraints on the range of data to be considered */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &range, &count, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the number of keys */
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &ninfo, &count, OPAL_UINT32))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
if (0 == ninfo) {
|
|
|
|
/* they forgot to send us the keys?? */
|
|
|
|
rc = ORTE_ERR_BAD_PARAM;
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* unpack the keys */
|
|
|
|
for (i=0; i < ninfo; i++) {
|
|
|
|
count = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &str, &count, OPAL_STRING))) {
|
2008-02-28 04:57:57 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
2015-08-31 06:54:45 +03:00
|
|
|
opal_argv_append_nosize(&keys, str);
|
|
|
|
free(str);
|
2013-08-14 08:21:17 +04:00
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2015-09-04 18:29:09 +03:00
|
|
|
/* unpack any info elements */
|
|
|
|
count = 1;
|
2015-12-17 18:51:24 +03:00
|
|
|
uid = UINT32_MAX;
|
2015-09-04 18:29:09 +03:00
|
|
|
while (ORTE_SUCCESS == (rc = opal_dss.unpack(buffer, &iptr, &count, OPAL_VALUE))) {
|
|
|
|
/* if this is the userid, separate it out */
|
|
|
|
if (0 == strcmp(iptr->key, OPAL_PMIX_USERID)) {
|
|
|
|
uid = iptr->data.uint32;
|
|
|
|
}
|
|
|
|
/* ignore anything else for now */
|
|
|
|
OBJ_RELEASE(iptr);
|
|
|
|
}
|
2015-12-17 18:51:24 +03:00
|
|
|
if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc || UINT32_MAX == uid) {
|
2015-09-04 18:29:09 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
opal_argv_free(keys);
|
|
|
|
goto SEND_ERROR;
|
|
|
|
}
|
|
|
|
|
2015-08-31 06:54:45 +03:00
|
|
|
/* cycle across the provided keys */
|
|
|
|
for (i=0; NULL != keys[i]; i++) {
|
|
|
|
/* cycle across the stored data, looking for a match */
|
|
|
|
for (k=0; k < orte_data_server_store.size; k++) {
|
|
|
|
data = (orte_data_object_t*)opal_pointer_array_get_item(&orte_data_server_store, k);
|
|
|
|
if (NULL == data) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
/* can only access data posted by the same user id */
|
|
|
|
if (uid != data->uid) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
/* can only access data posted by the same process */
|
|
|
|
if (OPAL_EQUAL != orte_util_compare_name_fields(ORTE_NS_CMP_ALL, &data->owner, &requestor)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
/* can only access data posted for the same range */
|
|
|
|
if (range != data->range) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
/* see if we have this key */
|
|
|
|
OPAL_LIST_FOREACH_SAFE(iptr, inext, &data->values, opal_value_t) {
|
|
|
|
if (0 == strcmp(iptr->key, keys[i])) {
|
|
|
|
/* found it - delete the object from the data store */
|
|
|
|
opal_list_remove_item(&data->values, &iptr->super);
|
|
|
|
OBJ_RELEASE(iptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* if all the data has been removed, then remove the object */
|
|
|
|
if (0 == opal_list_get_size(&data->values)) {
|
|
|
|
opal_pointer_array_set_item(&orte_data_server_store, k, NULL);
|
|
|
|
OBJ_RELEASE(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
opal_argv_free(keys);
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
/* tell the sender this succeeded */
|
|
|
|
ret = ORTE_SUCCESS;
|
|
|
|
if (ORTE_SUCCESS != (rc = opal_dss.pack(answer, &ret, 1, OPAL_INT))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
}
|
|
|
|
goto SEND_ANSWER;
|
|
|
|
break;
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
default:
|
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_BAD_PARAM);
|
|
|
|
rc = ORTE_ERR_BAD_PARAM;
|
|
|
|
break;
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
SEND_ERROR:
|
2015-09-04 18:29:09 +03:00
|
|
|
OPAL_OUTPUT_VERBOSE((1, orte_debug_output,
|
|
|
|
"%s data server: sending error %s",
|
|
|
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
|
|
|
|
ORTE_ERROR_NAME(rc)));
|
2008-02-28 04:57:57 +03:00
|
|
|
/* pack the error code */
|
2012-04-06 18:23:13 +04:00
|
|
|
if (ORTE_SUCCESS != (ret = opal_dss.pack(answer, &rc, 1, OPAL_INT))) {
|
2008-02-28 04:57:57 +03:00
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
}
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2013-08-14 08:21:17 +04:00
|
|
|
SEND_ANSWER:
|
2016-10-23 21:36:05 +03:00
|
|
|
if (0 > (rc = orte_rml.send_buffer_nb(orte_mgmt_conduit,
|
|
|
|
sender, answer, ORTE_RML_TAG_DATA_CLIENT,
|
2015-08-31 06:54:45 +03:00
|
|
|
orte_rml_send_callback, NULL))) {
|
2008-02-28 04:57:57 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2012-04-06 18:23:13 +04:00
|
|
|
OBJ_RELEASE(answer);
|
2008-02-28 04:57:57 +03:00
|
|
|
}
|
2008-02-28 22:58:32 +03:00
|
|
|
}
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
|