All Questions
Multi Step Processes hard

In the Two-Phase Commit protocol (2PC), what happens if the Coordinator crashes *after* sending 'Prepare' but *before* sending 'Commit'?

  1. A The transaction commits automatically.
  2. B The participants automatically rollback after 1 second.
  3. C The participants remain in a 'Blocked' state, holding locks indefinitely, waiting for the Coordinator to recover and tell them the outcome.
  4. D The participants elect a new leader.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions