Operational Defect Database

BugZero found this defect 60 days ago.

MongoDB | 2614303

Prevent timeouts in read_pref_with_hedging_mode.js

Last update date:

3/20/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

In the read_pref_with_hedging_mode test, the first read that doesn't throw some error on the mongos is setting a maxTimeMS of 1000ms. Since this is the first read to this collection, the mongoS is having to perform a refresh to get the routing information. On slow machines, this refresh can sometimes take enough time that the operation hits the max time. We should either increase the maxTimeMS of this operation or perform a read at the beginning of the test to cause the refresh to happen earlier.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...