Commit Protocols Flashcards

1
Q

What are the ACID properties?

A

Atomicity, Consistency, Independence, Durability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the point of commit protocols in transaction systems?

A

Ensure all nodes commit or abort a transaction as a unified decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When is a transaction in danger of a dealock?

A

When a transactions response to a conflict is to wait for a lock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name a way to avoid deadlocks.

A

Extinction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Locking and Extinction ensures what ACID properties?

A

C and I

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the phases of 2-phase commit protocool?

A
  1. Coordinator collects yes/no from all servers
  2. Coordinator enforces the decision (commit/abort)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is 2PC blocking?

A

If coordinator crashes in phase 2, servers in “wait” state will be waiting for recovery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does 3PC differ and improve over 2PC?

A

Adds a pre-commit state to reduce blocking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly