Fix missing validation of primary's end_scn when standby becomes primary
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 339
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 52
Description
Description
When a standby replica transitions to become the primary, it should validate the primary's end_scn. The current implementation is flawed because it does not fetch the primary's flashback state.
Proposed Solution
Fix the logic to correctly retrieve and validate the primary's end_scn (including its flashback state) during the role transition from standby to primary.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the standby-to-primary role-transition path and the existing retrieval of the primary's end_scn. Check how flashback state is fetched during that transition, then verify that end_scn validation uses the retrieved state; done means the transition correctly validates the primary's end_scn including flashback state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100