[SERVER-27525] collation.js should use test-specific database Created: 27/Dec/16  Updated: 05/Apr/17  Resolved: 11/Jan/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.4.2, 3.5.2

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-27862 Ensure tests that create background=t... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Query 2017-01-23
Participants:
Linked BF Score: 0

 Description   

As part of collation testing, core/collation.js will convert a non-capped collection to one that is capped via "convertToCapped" command, confirming that the default collation of the original collection is preserved.

As part of the capped conversion, mongod will confirm that there are no background operations occurring via assertNoBgOpInProgForDb() call, asserting if there is a conflict.

collation.js uses the "test" database for its operations. As we run collation.js as part of the parallel suite, this raises the possibility that the assertNoBgOpInProgForDb() will fail due active background index build on the same database by another test. We should consider changing collation.js to use a test-specific database to avoid potential conflict.



 Comments   
Comment by Githook User [ 17/Jan/17 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: SERVER-27525 Use test-specific database to test convertToCapped with collation
Branch: v3.4
https://github.com/mongodb/mongo/commit/e1aeba9cf2d560d34d1c96980860920d31ad8a79

Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: SERVER-27525 Use test-specific database to test convertToCapped with collation
Branch: master
https://github.com/mongodb/mongo/commit/446ac64ff48e9280d89138de5a8b90dab45caf38

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