Skip to content

test: stabilize immediate multiple observer cancellation #10902

Description

@ReubenBond

The Windows net10.0 BVT job intermittently failed ObserverCancellationTokenTests_WaitForAcknowledgement.MultipleObserversCancellation(cancelImmediately: true).

Failure: Assert.ThrowsAny() Failure: No exception was thrown at ObserverCancellationTokenTests.cs:228; one notification task completed instead of throwing OperationCanceledException.

Observed in CI: https://github.com/dotnet/orleans/actions/runs/33132684117/job/98725565511

The exact two-case test passed 20 consecutive local runs (40/40 cases) on net10.0 after rebasing PR #10074 onto current main, so this appears timing-dependent rather than a deterministic transport regression. Investigate the cancel-immediately race between request dispatch, remote completion, and cancellation acknowledgement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions