Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-85981

db.runCommand( { "listSearchIndexes": <collection>, "name":<indexName>}) returns flaky results

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Integration
    • ALL

      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

            Assignee:
            reilly.mcbride@mongodb.com Reilly McBride
            Reporter:
            fiona.chang@mongodb.com Fiona Chang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: