subhasisgorai opened a new pull request, #4236: URL: https://github.com/apache/hive/pull/4236
### What changes does this PR contain? To support the Planned/Unplanned Failover, we need the capability to increase the retention period for both the Notification Logs and Change Manager entries until the successful reverse replication is done (i.e. the Optimized Bootstrap). A database-level property 'repl.db.under.failover.sync.pending' was introduced to signify this state. This PR contains the changes for, 1. selective deletion of notification events that are not relevant to the database(s) in failover 2. skipping the CM clearer thread execution until the time the Optimized Bootstrap is not done ### Why this change is needed? The change is needed to make the Optimized Bootstrap and Point-in-time consistency possible. If the relevant Notification logs and Change Manager entries are not retained, we can't perform the Optimized Bootstrap. ### Were the changes tested? I have included relevant unit tests in this PR, and will also perform manual verification after deploying the changes on a cluster. ### Does this PR introduce _any_ user-facing change? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
