[SERVER-38737] Remove special casing for secondaries in plan_cache_index_create.js indexBuildIsRunning() Created: 21/Dec/18  Updated: 29/Oct/23  Resolved: 21/Dec/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.7

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

As of the commit for SERVER-34830, the createIndexes command will now report command name correctly in currentOp. With this change, the filter used by indexBuildIsRunning() to determine whether a secondary replica member is running an index build is no longer correct and can return a false negative.

To fix this, we can remove the special casing for secondaries as SERVER-34830 allows for the same filter across both primary and secondary members.



 Comments   
Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'jameswahlin', 'email': 'james@mongodb.com', 'name': 'James Wahlin'}

Message: SERVER-38737 Remove special casing for secondaries in plan_cache_index_create.js indexBuildIsRunning()
Branch: master
https://github.com/mongodb/mongo/commit/f54e7ff52da1d6b20d30b4f9eb5d2f7f7bf7713a

Generated at Thu Feb 08 04:49:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.