SERVER-106341 Disable remaining racy assertion in ReshardingOplogFetcherTest (#40429) (#43473)

GitOrigin-RevId: 7a29d2972b04728df26cacafd293d310a5957a90
This commit is contained in:
Janna Golden 2025-11-03 13:40:08 -05:00 committed by MongoDB Bot
parent 48ae227c07
commit 3c9c2f2747

View File

@ -1828,7 +1828,7 @@ TEST_F(ReshardingOplogFetcherTest, UpdateAverageTimeToFetchCursorAdvancedBasic)
// Verify that the average got initialized based on the difference between the current timestamp
// and the latest resume timestamp.
auto avgTimeToFetch0 = timeToFetch0;
// auto avgTimeToFetch0 = timeToFetch0;
// ASSERT_EQ(_metrics->getAverageTimeToFetchOplogEntries(_donorShard), avgTimeToFetch0);
advanceTime(Seconds{5});
@ -1843,8 +1843,8 @@ TEST_F(ReshardingOplogFetcherTest, UpdateAverageTimeToFetchCursorAdvancedBasic)
// Verify that the average got updated based on the difference between the current timestamp
// and the latest resume timestamp.
auto avgTimeToFetch1 = Milliseconds((int)resharding::calculateExponentialMovingAverage(
avgTimeToFetch0.count(), timeToFetch1.count(), smoothingFactor));
// auto avgTimeToFetch1 = Milliseconds((int)resharding::calculateExponentialMovingAverage(
// avgTimeToFetch0.count(), timeToFetch1.count(), smoothingFactor));
// ASSERT_EQ(_metrics->getAverageTimeToFetchOplogEntries(_donorShard),
// Milliseconds(avgTimeToFetch1));
@ -1865,8 +1865,8 @@ TEST_F(ReshardingOplogFetcherTest, UpdateAverageTimeToFetchCursorAdvancedBasic)
executor->join();
// Verify that the average did not get updated when the fetcher joined.
ASSERT_EQ(_metrics->getAverageTimeToFetchOplogEntries(_donorShard),
Milliseconds(avgTimeToFetch1));
// ASSERT_EQ(_metrics->getAverageTimeToFetchOplogEntries(_donorShard),
// Milliseconds(avgTimeToFetch1));
}
TEST_F(ReshardingOplogFetcherTest, UpdateAverageTimeToFetchAdvancedDelayLessThanOneSecond) {