Validate switch_threshold parameter is not greater than or equal to APPLY_COUNT
alex-richman-onesignal opened this issue · comments
Alex Richman commented
- In #347 a switch_threshold parameter was added to allow tuning of the previously static SWITCH_THRESHOLD, which is used in REDO to decide when to stop and switchover the target table.
- If switch_threshold is configured to be greater than or equal to APPLY_COUNT (def 1000), then it will stop REDO after the first apply_log loop, which will mean it potentially has a lot of remaining logs to replay after it has acquired the exclusive table lock during switchover.
- Fixed in #392