Operational Defect Database

BugZero found this defect 82 days ago.

MongoDB | 2591401

standalone_in_queryable_backup_mode.js test might try to get a primary in a replica set with only secondaries

Last update date:

3/15/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

This test checks the queryable backup mode, by shutting down a secondary node, restaring it with the --queryableBackupMode flag, and then issuing reads considering writes should be forbidden in that mode. As part of the test, there is a read right after stopping a secondary node that tries to get the primary of the replica set, and if the primary stop getting heartbeats from the secondary (i.e. they could be taking too long in slow machine tests), then there won't be any primary to query, causing the test to fail. This is a test issue, the reason of the read is to get the shard identity string that will allow the stopped node to be restarted as queryable, so, in order to fix this issue we could simply move the read right before stopping the secondary node.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...