Operational Defect Database

BugZero found this defect 2316 days ago.

MongoDB | 448928

[SERVER-31672] Cancel election if the last vote has a higher term than mine

Last update date:

10/27/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

If the term of last vote on the disk is higher than the vote the candidate is about to write, the candidate should cancel the election, not continue silently.

Top User Comments

siyuan.zhou@10gen.com commented on Tue, 24 Oct 2017 01:26:57 +0000: Correctness (only vote once in a term) is guaranteed by updating the term while holding the repl mutex. Only if the term in election is higher than the voter's current one, the voter votes "yes". This is true for both voting for the node itself or another node. As a result, we may allow writing last vote with lower term to succeed as if the write happened before the current last vote.

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...