HomeClusterLabs Projects

Fix: attrd: avoid race condition when shutting down

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Fix: attrd: avoid race condition when shutting down

This addresses a race condition that can occur when the DC and the attribute
writer are different nodes, and shutting down at the same time. When the DC
controller leaves its Corosync process group, the remaining nodes erase its
transient node attributes (including "shutdown") from the CIB. However if the
(former) DC's attrd is still up, it can win the attribute writer election
called after the original writer leaves. As the election winner, it writes out
all its attributes to the CIB, including "shutdown". The next time it rejoins
the cluster, it will be immediately shut down.

Fixes T138

Details

Provenance
kgaillotAuthored on Aug 3 2023, 1:17 PM
Tasks
Restricted Maniphest Task

Commit No Longer Exists

This commit no longer exists in the repository.