Skip to content

Race condition in SpecCluster.close when closing while upscaling #5876

Open
@fjetter

Description

@fjetter

There is a race condition in SpecCluster.close that can lock potentially indefinitely if a cluster is closing while instances are spawned at the same time. It is not clear, yet, if this deadlock resolves itself given enough time.

This has been diagnosed as a root cause for some of the flaky tests, see #4859 (comment)

As a user I would expect an ongoing scale up attempt to be canceled during cluster closing and the closing to take care of cleaning up all already created instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    adaptiveAll things relating to adaptive scaling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions