﻿# RCCL failure handling: no asynchronous error does not prove every peer is progressing

Design RCCL completion checks around stream progress, communicator errors and application deadlines, including the documented missing-peer limit of symmetric-memory collectives.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-rccl-async-success-not-peer-liveness/
Language: en

## Distinguish submitted work from a finished collective

The [RCCL API reference](https://rocm.docs.amd.com/projects/rccl/en/latest/api-reference/api-library.html) exposes operation results and asynchronous communicator-error queries. A successful submission does not prove that a peer has reached the matching collective or that the stream has completed it. Track the completion condition required by the consumer, not only the original call's return code. This distinction becomes especially important when a model worker is alive as a process but stops reaching its expected communication step.

## Check the communication path's failure visibility

The [fault-tolerance guide](https://rocm.docs.amd.com/projects/rccl/en/latest/how-to/fault-tolerance.html) documents a specific missing-peer limitation for symmetric-memory collectives: a peer that never enters the collective can leave device-side waiting without an asynchronous error or communicator timeout reporting that absence. Do not generalize the error-query mechanism into a universal liveness detector. Establish an application deadline or separate progress monitor for the failure condition the runtime cannot observe through that path.

## Identify whether symmetric memory is actually active

The [RCCL usage guidance](https://rocm.docs.amd.com/projects/rccl/en/latest/how-to/rccl-usage-tips.html) describes symmetric-memory prerequisites and diagnostic initialization evidence. An allocation capable of symmetric registration is not by itself proof that the communicator uses the path. Retain the selected transport and initialization context with a failure investigation. This avoids explaining every collective hang with a limitation that may not apply to the actual execution configuration.

## Preserve query errors and reported state separately

A status-query function can fail to retrieve state, and a successful query can return a communicator state requiring action. Handle those outcomes independently. During normal completion polling, retain the selected release's supported ordering and avoid consuming result buffers merely because no error has yet appeared. If recovery is required, follow documented nonblocking and concurrent-call restrictions rather than aborting a communicator from an arbitrary worker while other threads are inside its operations.

## Test a controlled missing-participant scenario

Use a disposable diagnostic workload to delay a participant and confirm that the application's progress policy detects the intended condition. Record what the stream, communicator and separate monitor each observe. The existing [stream-dependency guide](/journal/learn-stream-ordering-dependencies/) and [software reproducibility guide](/journal/software-stack-reproducibility/) support related context. A useful recovery design distinguishes completion, detectable errors and unobserved nonprogress instead of promising that one status query catches every failed or missing peer.
