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

createSearchIndex() helper can be flaky when used with --repeat

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • Hide

      Command to reproduce test failures locally: 

      buildscripts/resmoke.py run --suites=search_end_to_end_single_node jstests/with_mongot/e2e/vector_search_remove_embeddings.js --installDir=build/install/bin --repeatTests=100
      Show
      Command to reproduce test failures locally:  buildscripts/resmoke.py run --suites=search_end_to_end_single_node jstests/with_mongot/e2e/vector_search_remove_embeddings.js --installDir=build/install/bin --repeatTests=100
    • 200

      When vector_search_remove_embeddings.js is run repeatedly (both locally and on evergreen), a number of tests fail for the single node test suite. Patch with additional logging statements in the test failure logs here.

      Upon investigating these failures, I observed that when createSearchIndex is called in vector_search_remove_embeddings.js, all the failing tests (as seen in patch linked above) returned early from this
      runCreateSearchIndexOnPrimary method in src/mongo/shell/collection.js (specifically: when it finds an entry that did not have a "DOES_NOT_EXIST" status and {}is{_} queryable, it returns the response early). The tests fail with this error message: "cannot query index while in state INITIAL_SYNC". All the passing burn_in tests for single node test suite return at the very end (after the last assert.soon(...) call).

      These failures do not appear to be the result of the added vector_search_remove_embeddings.js test or the minor code changes made in src/mongo/db/pipeline/search/document_source_vector_search.cpp.

            Assignee:
            Unassigned Unassigned
            Reporter:
            adithi.raghavan@mongodb.com Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: