[SERVER-85981] db.runCommand( { "listSearchIndexes": <collection>, "name":<indexName>}) returns flaky results Created: 30/Jan/24  Updated: 06/Feb/24

Status: Needs Verification
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Fiona Chang Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Operating System: ALL
Participants:

 Description   

When testing db.runCommand( {"listSearchIndexes": <collection>, "name":<indexName>}) using mongosh, we got flaky result with error BSONError: bad embedded document length in bson

We used mongosh version 2.0.2, mongodb version 6.0.13 with 2 shards and 3 mongod nodes both with and without dedicated search nodes.

Our e2e test also suggests flaky results on version 6.0 and here is the error log  for e2e tests.

Note: We don't see this error on un-sharded clusters



 Comments   
Comment by James Wahlin [ 31/Jan/24 ]

fiona.chang@mongodb.com have you tried reproducing this with the $listSearchIndexes aggregation stage as well?

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