[SERVER-12164] Write commands are nesting operations, which breaks index build interruptibility Created: 19/Dec/13  Updated: 05/May/14  Resolved: 13/Jan/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Write Ops
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Randolph Tan
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12139 fix performance regression of batch i... Closed
Related
is related to SERVER-3067 Can't kill indexing operations Closed
is related to SERVER-11767 creating background index and then dr... Closed
Operating System: ALL
Participants:

 Description   

As part of SERVER-3067, foreground index builds were made interruptable, but only for user-initiated builds. System-initiated builds were not made interruptable, because we suspected that the code was not prepared to gracefully handle this type of failure. We determined whether an operation was from a user by looking at whether the CurOp was nested or not. Nesting occurs when a DBDirectClient is in use.

When we added support for Write Commands, the support also utilized this wrapping ability of CurOp. This may not be aggregating the correct operation stats, in addition to breaking index build interruptibility.

Tests forthcoming.



 Comments   
Comment by Randolph Tan [ 13/Jan/14 ]

Fixed by:

https://github.com/mongodb/mongo/commit/c1bf7733d24108fc5543abb872cad6d7a5491dc2

Generated at Thu Feb 08 03:27:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.