Skip to content

Commit d321047

Browse files
committed
Ignore race condition on IOF
It is possible that a process exits while stdin has closed, leaving some stdin stranded. Don't error log not finding the intended recipient process due to the race condition. Signed-off-by: Ralph Castain <rhc@pmix.org>
1 parent a6b09c9 commit d321047

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/mca/iof/hnp/iof_hnp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Copyright (c) 2016-2020 Intel, Inc. All rights reserved.
1919
* Copyright (c) 2017 Mellanox Technologies. All rights reserved.
2020
* Copyright (c) 2020 IBM Corporation. All rights reserved.
21-
* Copyright (c) 2021-2025 Nanook Consulting All rights reserved.
21+
* Copyright (c) 2021-2026 Nanook Consulting All rights reserved.
2222
* $COPYRIGHT$
2323
*
2424
* Additional copyrights may follow
@@ -219,7 +219,9 @@ static int push_stdin(const pmix_proc_t *dst_name, uint8_t *data, size_t sz)
219219
PMIX_LOAD_PROCID(&p, PRTE_PROC_MY_NAME->nspace, PMIX_RANK_WILDCARD);
220220
p.rank = prte_get_proc_daemon_vpid(dst_name);
221221
if (PMIX_RANK_INVALID == p.rank) {
222-
PRTE_ERROR_LOG(PRTE_ERR_ADDRESSEE_UNKNOWN);
222+
// proc must have finalized, so we can just ignore
223+
// it - no need to error log, this is just a
224+
// race condition
223225
return PRTE_ERR_ADDRESSEE_UNKNOWN;
224226
}
225227

0 commit comments

Comments
 (0)