[SERVER-20933] Replicated DeleteIndexes shouldn't fail on missing index Created: 15/Oct/15  Updated: 27/Oct/15  Resolved: 20/Oct/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.0-rc1

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

 
[js_test:backup_restore] 2015-10-14T22:26:44.886+0000 d23013| 2015-10-14T22:26:44.885+0000 I COMMAND  [repl writer worker 2] CMD: dropIndexes db1.coll1
[js_test:backup_restore] 2015-10-14T22:26:44.887+0000 d23013| 2015-10-14T22:26:44.885+0000 E REPL     [repl writer worker 2] Failed command { deleteIndexes: "coll1", index: { indexed_insert_multikey: 1.0 } } on db1 with status InvalidOptions can't find index with key: { indexed_insert_multikey: 1.0 } during oplog application
[js_test:backup_restore] 2015-10-14T22:26:44.888+0000 d23013| 2015-10-14T22:26:44.885+0000 F REPL     [repl writer worker 2] Error applying operation ({ ts: Timestamp 1444861593000|3, t: 1, h: -4187341676427100567, v: 2, op: "c", ns: "db1.$cmd", o: { deleteIndexes: "coll1", index: { indexed_insert_multikey: 1.0 } } }): InvalidOptions can't find index with key: { indexed_insert_multikey: 1.0 }
[js_test:backup_restore] 2015-10-14T22:26:44.888+0000 d23013| 2015-10-14T22:26:44.886+0000 I -        [repl writer worker 2] Fatal Assertion 16359
[js_test:backup_restore] 2015-10-14T22:26:44.888+0000 d23013| 2015-10-14T22:26:44.886+0000 I -        [repl writer worker 2]
[js_test:backup_restore] 2015-10-14T22:26:44.888+0000 d23013|
[js_test:backup_restore] 2015-10-14T22:26:44.888+0000 d23013| ***aborting after fassert() failure



 Comments   
Comment by Githook User [ 20/Oct/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-20933: return correct error code for missing index
Branch: master
https://github.com/mongodb/mongo/commit/8b7ac8a0ab6075779907c20f951e29227e676e0b

Comment by Scott Hernandez (Inactive) [ 15/Oct/15 ]

The InvalidOptions error code is not included in the ignorable error codes (ErrorCodes::NamespaceNotFound, ErrorCodes::IndexNotFound). We should fix the index code to return IndexNotFound instead.

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