FIX: Openmedia Hotstandby disable heartbeat on primary when secondary is used #110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the Contributor
This PR is made on behalf of BBC
Type of Contribution
This is a:
Bug fix
Current Behavior
When Hot Standby is enabled:
Currently Heartbeat is not disabled on Primary if Secondary is connected and Primary disconnected.
New Behavior
Check for Secondary connection changes has been added, and heartbeat is set corresponding to that.
Tests has been updated:
The wrong test in Mosconnection.spec.ts has been removed, and the OpenMediaHotstandby.spec.ts test has been fixed with correct disconnection, and test for failover cases.
Testing Instructions
Run 2 parallel Open Media servers and disconnect the Primary.
Status
This PR has been test by author and only awaits BBC's final approval