Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible orchestration hangs during purge or with lots objects #395

Merged
merged 6 commits into from
Aug 17, 2023

Conversation

cgalibern
Copy link
Contributor

No description provided.

…ce status cache during onObjectStatusUpdated

<localhost> ObjectStatusUpdated with source event of <peer> InstanceStatusDeleted
=> deletes instance status cache <localhost> instead of <peer>

This break orchestration
… instance.MonitorStateStopped)

stopping -> idle -> stopping: may happen if local instance status cache is not yet applied

before:
    idle -> stopping -> idle -> stopping -> idle -> wait non-leader -> unprovisioning -> unprovisioned -> deleting -> deleted -> idle
now:
    idle -> stopping -> stopped -> wait non-leader -> unprovisioning -> unprovisioned -> deleting -> deleted -> idle
…chestrationId

Before this commit, orchestrationIsAllDone() returns false when it found an imon status with OrchestrationIsDone == false.
But an imon status with OrchestrationIsDone == false and OrchestrationId == uuid.Nil is a done imon orchestration.
@cvaroqui cvaroqui merged commit e063c5f into opensvc:main Aug 17, 2023
1 check passed
@cgalibern cgalibern deleted the fix-orchestration-possible-hangs branch August 21, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants