[SERVER-14229] multiversion test dumprestore_24.js is failing because of bad test data Created: 11/Jun/14  Updated: 11/Jul/16  Resolved: 11/Jun/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.7.2

Type: Bug Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

./jstests/multiVersion/libs/data_generators.js (function Gen2dIndexOptions) produces bad min/max values for the 2d spatial index and the test is now failing:

 m27000| 2014-06-11T14:57:30.025-0400 [conn1] 	 added index to empty collection
 
collection.ensureIndex({"B":"2d"}, {"sparse":true,"expireAfterSeconds":1014,"min":10,"max":10});
 
assert failed : {"connectionId":1,"err":"region for hash must be valid and have positive area, but [10, 10]was specified","code":72,"n":0,"ok":1}
 
Error: assert failed : {"connectionId":1,"err":"region for hash must be valid and have positive area, but [10, 10]was specified","code":72,"n":0,"ok":1}
 
    at Error (<anonymous>)
 
    at doassert (src/mongo/shell/assert.js:11:14)
 
    at assert (src/mongo/shell/assert.js:20:5)
 
    at createCollectionWithData (./jstests/multiVersion/libs/verify_collection_data.js:43:9)
 
    at multiVersionDumpRestoreTest (E:\workspace\mongo\./jstests/multiVersion/dumprestore_24.js:47:28)
 
    at E:\workspace\mongo\./jstests/multiVersion/dumprestore_24.js:187:5



 Comments   
Comment by Githook User [ 11/Jun/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-14229 Do not generate bad 2d index options in multiversion dumprestore test helper
Branch: master
https://github.com/mongodb/mongo/commit/2326733efda1097c284c8ba1cb82df3297aa8e1f

Comment by Githook User [ 11/Jun/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-14229 correct error message for 2d index bounds invalid
Branch: master
https://github.com/mongodb/mongo/commit/f72c8e24a654bf0425287cc45c332178537fa508

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