GridProtectionAlliance / openHistorian

The Open Source Time-Series Data Historian
MIT License
172 stars 51 forks source link

OH-2 Eliminate race condition in failover logic #101

Closed StephenCWills closed 5 months ago

StephenCWills commented 5 months ago

With this PR, if we receive a request for failover, we don't even check if the primary node is active because its web host may not be available at the point where it's requesting failover. The logic is much simpler. The web host will reject the request if the user is unauthorized. ServiceHost will reject the request if the node is not configured as a secondary node.