Operational Defect Database

BugZero found this defect 2429 days ago.

MongoDB | 399790

[SERVER-29946] Increase heartbeat rate when a secondary has no sync source

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.6.4

3.7.1

Description:

Info

SERVER-19898 tried to do the same thing, but it actually did the opposite. min(_rsConfig.getElectionTimeoutPeriod() / 2, _rsConfig.getHeartbeatInterval() / 4) could be a reasonable heartbeat rate - 500ms by default. // Arbiters also use half the election timeout period for their heartbeat frequency Milliseconds heartbeatInterval; if (_rsConfig.getProtocolVersion() == 1 && (getMemberState().arbiter() || (getSyncSourceAddress().empty() && !_iAmPrimary()))) { heartbeatInterval = _rsConfig.getElectionTimeoutPeriod() / 2; // 5 seconds by default. } else { heartbeatInterval = _rsConfig.getHeartbeatInterval(); // 2 seconds by default. }

Top User Comments

xgen-internal-githook commented on Fri, 23 Feb 2018 20:59:38 +0000: Author: {'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou', 'username': 'visualzhou'} Message: SERVER-29946 Increase heartbeat rate when a secondary has no sync source (cherry picked from commit 630c282a2aecf4c1d2bf058e150e7fa0d3699699) Branch: v3.6 https://github.com/mongodb/mongo/commit/6dea955e444528489180a730cd7dd40db420d228 siyuan.zhou@10gen.com commented on Tue, 21 Nov 2017 23:09:38 +0000: It would be nice to backport this ticket to 3.6 and 3.4 but not urgent. xgen-internal-githook commented on Tue, 21 Nov 2017 23:07:30 +0000: Author: {'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'} Message: SERVER-29946 Increase heartbeat rate when a secondary has no sync source Branch: master https://github.com/mongodb/mongo/commit/630c282a2aecf4c1d2bf058e150e7fa0d3699699

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:

...