[SERVER-44115] Exclude jstests/core/autocomplete.js from sharded jscore tests Created: 18/Oct/19  Updated: 29/Oct/23  Resolved: 03/Apr/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.2.6, 4.4.0-rc0, 4.0.20, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: sharding-4.4-stabilization, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-47321 autocomplete.js test must not overrid... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Sharding 2020-03-23
Participants:
Linked BF Score: 12

 Description   

The methods returned by autocomplete.js are being interpreted as collections and are implicitly sharded.
To prevent the BF, for now, we can just exclude the autocomple.js from the test with the getCollection overload.
There are 2 questions still open:

  • what calls getCollection on the list returned in _autocomplete_
  • why this list sometimes includes viewSource method that causes the BF


 Comments   
Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-44115 autocomplete.js uses its own test database

to avoid autocompletion trigger actions on leftover collections from
previus tests

(cherry picked from commit 15a944fc287e033c25b84079bbfed758ca7ebeae)
Branch: v4.0
https://github.com/mongodb/mongo/commit/002e52a1a65c4876912d5672e8b2e5b593cd158f

Comment by Tommaso Tocci [ 10/Apr/20 ]

The only fix version missing was `4.5.1`, I've added it

Comment by Tommaso Tocci [ 03/Apr/20 ]

Backport for v4.0 has been reverted and won't be re-committed unless BF will appears for the same problem on v4.0

Comment by Githook User [ 03/Apr/20 ]

Author:

{'name': 'Maria van Keulen', 'email': 'maria@mongodb.com', 'username': 'mvankeulen94'}

Message: Revert "SERVER-44115 autocomplete.js uses its own test database"

This reverts commit c7f69cf46732ebd299aa540e9538fa78b80a710c.
Branch: v4.0
https://github.com/mongodb/mongo/commit/0a07742b46483bfbfd97cfc638e0e0f2487984b1

Comment by Githook User [ 30/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-44115 autocomplete.js uses its own test database

to avoid autocompletion trigger actions on leftover collections from
previus tests
Branch: v4.0
https://github.com/mongodb/mongo/commit/c7f69cf46732ebd299aa540e9538fa78b80a710c

Comment by Githook User [ 30/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-44115 autocomplete.js uses its own test database

to avoid autocompletion trigger actions on leftover collections from
previus tests

(cherry picked from commit 15a944fc287e033c25b84079bbfed758ca7ebeae)
(cherry picked from commit 09ea2c315d2e7a44a49a990ed7649af3919acd4d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/40a23019759da0dbc80f2e894f1a3690fc49d85c

Comment by Githook User [ 25/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-44115 autocomplete.js uses its own test database

to avoid autocompletion trigger actions on leftover collections from
previus tests

(cherry picked from commit 15a944fc287e033c25b84079bbfed758ca7ebeae)
Branch: v4.4
https://github.com/mongodb/mongo/commit/09ea2c315d2e7a44a49a990ed7649af3919acd4d

Comment by Githook User [ 17/Mar/20 ]

Author:

{'email': 'tommaso.tocci@mongodb.com', 'name': 'Tommaso Tocci', 'username': 'toto-dev'}

Message: SERVER-44115 autocomplete.js uses its own test database

to avoid autocompletion trigger actions on leftover collections from
previus tests
Branch: master
https://github.com/mongodb/mongo/commit/15a944fc287e033c25b84079bbfed758ca7ebeae

Comment by Tommaso Tocci [ 12/Mar/20 ]

It seems that the problem is affecting all the suites that uses ShardedClusterFixture. In particular jstests/core/map_reduce_validation.js create the test.sourceView view and it doesn't drop it at the end of the test.
Thus ShardedClusterFixture intercepts all the possible collections that are found by the autocomplete.js test and tries to implicitly shard them.

For the moment we decided not to blacklist the test and instead make map_reduce_validation.js not to leave any view on the database.

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