[SERVER-14205] ensureIndex failure reports ok: 1 on some failures Created: 08/Jun/14  Updated: 11/Jul/16  Resolved: 09/Jun/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Shell
Affects Version/s: 2.6.0, 2.6.1
Fix Version/s: 2.6.5, 2.7.2

Type: Bug Priority: Major - P3
Reporter: Andrew Emil (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File corrupttest.tgz    
Issue Links:
Related
Tested
Operating System: ALL
Backport Completed:
Steps To Reproduce:

1) Run mongod against attached datafiles
2) Try to ensure an index on test.test

Participants:

 Description   

Against a corrupted data set (next extent header pointing to invalid location):

> db.test.ensureIndex({a:1})
{
        "createdCollectionAutomatically" : false,
        "numIndexesBefore" : 1,
        "numIndexesAfter" : 1,
        "ok" : 1
}
> db.test.ensureIndex({b:1})
{
        "createdCollectionAutomatically" : false,
        "numIndexesBefore" : 1,
        "numIndexesAfter" : 1,
        "ok" : 1
}
> 

Seems like ok should not be set to 1 here



 Comments   
Comment by Githook User [ 15/Sep/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-14205: fix error reporting in IndexCatalog::createIndex

(cherry picked from commit 8fc8bc9a86711bb9ea41887d2f88362353dc3062)
Branch: v2.6
https://github.com/mongodb/mongo/commit/c785f1a4cc02c5ba157b7482b3df82fced65104d

Comment by Githook User [ 09/Jun/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-14205: fix error reporting in IndexCatalog::createIndex
Branch: master
https://github.com/mongodb/mongo/commit/8fc8bc9a86711bb9ea41887d2f88362353dc3062

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