[SERVER-65399] 'commitIndexBuild' oplog entry is a no-op for unfinished index builds not restarted Created: 08/Apr/22  Updated: 29/Oct/23  Resolved: 29/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc8, 5.0.10, 4.4.16, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0, v5.0, v4.4
Sprint: Execution Team 2022-05-02
Participants:
Linked BF Score: 50

 Description   

Unfinished index builds are not restarted in standalone mode. When the server is started with --recoverFromOplogAsStandalone, a commitIndexBuild oplog entry during oplog recovery is a no-op for these unfinished indexes. This has the potential to hang oplog recovery when replaying oplog entries after the commitIndexBuild oplog entry, like renameCollection with dropTarget=true which checks that there are no index builds in progress.



 Comments   
Comment by Githook User [ 05/Aug/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Restart index build if recover in standalone and 'commitIndexBuild' oplog entry replayed

(cherry picked from commit f03a09fbe1c71b82be4bcdc79f8f0c6861f066c3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a7bceadbac919a2c035f2874c61d138fd75d6a6f

Comment by Githook User [ 05/Aug/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Add test for restarting committed index builds in standalone mode

(cherry picked from commit 6897babf1abbf81460832bf6952ab9f16e41c540)
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/86394ab463bc8e9ae80ba7c6c33c24433b45a5b1

Comment by Githook User [ 10/Jun/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Restart index build if recover in standalone and 'commitIndexBuild' oplog entry replayed

(cherry picked from commit f03a09fbe1c71b82be4bcdc79f8f0c6861f066c3)
Branch: v5.0
https://github.com/mongodb/mongo/commit/6f34762e892fa576dfdff9ab01e5e1825685c0a9

Comment by Githook User [ 10/Jun/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Add test for restarting committed index builds in standalone mode

(cherry picked from commit 6897babf1abbf81460832bf6952ab9f16e41c540)
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/b64334b5576409dfc351aa268c964c8bb69659d0

Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Restart index build if recover in standalone and 'commitIndexBuild' oplog entry replayed
Branch: v6.0
https://github.com/mongodb/mongo/commit/8a33efbe383667ed8000f7fac40e8ad24c344d37

Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Add test for restarting committed index builds in standalone mode
Branch: v6.0
https://github.com/10gen/mongo-enterprise-modules/commit/8ee3a3e0f8ffbe924f8cfd378d8226fe71a1fb1e

Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Restart index build if recover in standalone and 'commitIndexBuild' oplog entry replayed
Branch: master
https://github.com/mongodb/mongo/commit/f03a09fbe1c71b82be4bcdc79f8f0c6861f066c3

Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-65399 Add test for restarting committed index builds in standalone mode
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/6897babf1abbf81460832bf6952ab9f16e41c540

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