[SERVER-30510] ApplyOps on an insertion into "system.indexes" no longer returns useful error with a bad index on 3.5.10 Created: 03/Aug/17  Updated: 30/Oct/23  Resolved: 11/Sep/17

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

Type: Bug Priority: Major - P3
Reporter: YunHe Wang Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2017-08-03 at 4.43.46 PM.png     PNG File Screen Shot 2017-08-03 at 4.48.53 PM.png    
Issue Links:
Depends
Related
related to SERVER-31034 apply_ops.cpp should have a unittest Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage 2017-10-02
Participants:

 Description   

We are running an "applyOps" command with a single oplog entry using the Java driver -> an oplog entry that is an insertion into "system.indexes" collection. Before, when an index with a bad key (for example, a string) is in the oplog, it returns the following:

On mongoDB 3.5.10, it returns the following:

The fact that the error is "Unknown" renders us incapable of handling it gracefully.



 Comments   
Comment by Ramon Fernandez Marina [ 11/Sep/17 ]

Author:

{'username': u'louiswilliams', 'name': u'Louis Williams', 'email': u'louis.williams@mongodb.com'}

Message:SERVER-30510 Catch errors when trying to write to the system.indexes collection using applyOps
Branch:master
https://github.com/mongodb/mongo/commit/339c91b33ab2512a2664f7402a00ec5dfdbf5011

Comment by Louis Williams [ 08/Sep/17 ]

Disregard my previous comment. Inserting into "system.indexes" on 3.5 with the applyOps command, while incorrect, will convert it to the correct "createIndexes" operation.

Comment by David Dana [ 25/Aug/17 ]

FYI this is guy is blocking CLOUDP-23661... not a fire but it's been blocked for a bit and would be good to get unblocked in the next three weeks.

Comment by Kaloian Manassiev [ 03/Aug/17 ]

Looks like this message came with milkie's commit for SERVER-27246 - https://github.com/mongodb/mongo/commit/0b9be138fb58ea4ef2ca77ddebf53b6c76238a13.

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