Skip to content

TestStressNRTReplication may never terminate (exceed suite timeout) #14664

@dweiss

Description

@dweiss

Description

It hangs in the 'restarter' thread on this condition:

        while (startupThreads.size() > 0) {
          Thread.sleep(10);
        }

the main thread just joins the restarted and never ends.

The bug is easy to show if you add a sleep before startupThreads.add(t); it is currently invoked after the sub-thread has been started - this means that it is possible the sub-thread removes itself from the startupThreads list before it's added to it, leaving the list in an inconsistent state (and never reach an empty state).

Version and environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions