canonical / canonical/dqlite

Implement two phase commit

Open
#46 6 comments 3 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4.4k
Forks
254
PR merge metrics
No merged PRs in 30d

Description

When leadership is lost while applying a WalFrames command with commit=1, the Methods object has no way to tell if the log entry actually got committed or not. We should investigate implementing an additional command for two-phase commit, so we can be sure that the commit went through or not. See the TestIntegration_MethodHookLeadershipLost#wal frames sub-test.

Contributor guide

Open the contributing guide

Research direction

Start by reading the TestIntegration_MethodHookLeadershipLost#wal frames sub-test and trace the WalFrames command behavior when leadership is lost with commit=1. Define the two-phase commit command and verify that the Methods object can determine whether the log entry committed or not.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, sqlite
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.