Skip to content

[Bug]: Intermittent test failure for in SuspendNotificationsFixture #1131

Closed

Description

@JakenVeina

Specifically, the newly-added test ConcurrentSuspendDuringResumeDoesNotCorrupt.

Given that this test seeks to force two methods to run concurrently, I think the main problem is that it's being allowed to run in parallel. That is, when running the test by itself, it fails nearly every time, but when running as part of the full suite, it tends to often pass. Which makes sense, because if the ThreadPool is being saturated by all the other tests running in parallel, it drastically reduces the likelihood that the two parallel Tasks that get scheduled don't actually get scheduled concurrently. The Barrier being used here only increases the likelihood that the meaningful units under test get scheduled concurrently, by making sure they wait for each other to be read, but it doesn't actually guarantee concurrent scheduling.

The biggest thing we can do is move this test into a separate fixture and disable parallelism. Which we should probably also do on a LOT of other concurrency tests.

Also, this does seem to be a legit defect in ResumeNotifications(). SuspendNotification()s locks on all the state its modifying, but ResumeNotifications() doesn't.

Activity

  1. added a commit that references this issue on Jul 4, 2026
    8a3cfcb
  2. added 3 commits that reference this issue on Jul 25, 2026
    b45c01c
    ce9fbe4
    4f0b457
  3. github-actions commented on Aug 11, 2026

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Aug 11, 2026
  5. added a commit that references this issue on Sep 11, 2026
    3f1b070
  6. added a commit that references this issue on Sep 21, 2026
    7a0a00d
  7. added a commit that references this issue on Oct 13, 2026
    d62f782
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ 换网址