[SERVER-81605] cleanupOrphanedWhileMigrating.js should not run on stepdown suites Created: 02/Oct/23  Updated: 30/Oct/23  Resolved: 20/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.1, 7.2.0-rc0
Fix Version/s: 7.2.0-rc0, 7.0.4

Type: Bug Priority: Major - P3
Reporter: Enrico Golfieri Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30
Participants:
Linked BF Score: 5

 Description   

cleanupOrphanedWhileMigrating.js performs a cleanupOrphans that in case of stepdown on a slow machine might delay to point to cause the assert soon to trigger.

A real example of a broken interleaving coming from BF-29780 that causing the test to fail 

  • A cleanupOrphans runs on a primary
  • the primary becomes secondary
  • cleanupOrphans fails after 5
  • The operation retried due to assert.soonNoExcept
  • A cleanupOrphans runs on a primary
  • the primary becomes secondary
  • cleanupOrphans fails after 8s
  • assert.soon triggers timeout

Increasing the timeout could mitigate but not fix the issue: In assert.soonNoExcept we re-run the command until success or until we hit the timeout. The test could keep failing if  step-down keeps occurring at every attempt



 Comments   
Comment by Githook User [ 24/Oct/23 ]

Author:

{'name': 'egol', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-81605 cleanupOrphanedWhileMigrating.js should not run on stepdown suites

(cherry picked from 32f2c26ae026e19f542cfcbfbbfdf2cbc1b823c2)
Branch: v7.0
https://github.com/mongodb/mongo/commit/9e05f4c84bd1eab634d769eb42dd04c147d088bb

Comment by Githook User [ 19/Oct/23 ]

Author:

{'name': 'egol', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-81605 cleanupOrphanedWhileMigrating.js should not run on stepdown suites
Branch: master
https://github.com/mongodb/mongo/commit/32f2c26ae026e19f542cfcbfbbfdf2cbc1b823c2

Generated at Thu Feb 08 06:46:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.