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

search index test helpers don't seem to work with unsharded collections

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

      First, disable implicit collection sharding, with a patch like this:

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      diff --git a/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml b/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml
      index c00a77b4c2e..8fb96d9385d 100644
      --- a/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml
      +++ b/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml
      @@ -36,7 +36,6 @@ executor:
                 keyFileData: *keyFileData
                 roleGraphInvalidationIsFatal: true
             eval: >-
      -        await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
               jsTest.authenticate(db.getMongo());
             <<: *authOptions
         fixture:
      

      Then run the attached test like this:

      python buildscripts/resmoke.py run --suites=search_end_to_end_sharded_cluster jstests/with_mongot/e2e/repro.js
      
      Show
      First, disable implicit collection sharding, with a patch like this: Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml diff --git a/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml b/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml index c00a77b4c2e..8fb96d9385d 100644 --- a/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml +++ b/buildscripts/resmokeconfig/suites/search_end_to_end_sharded_cluster.yml @@ -36,7 +36,6 @@ executor:            keyFileData: *keyFileData            roleGraphInvalidationIsFatal: true        eval: >- -        await import ( "jstests/libs/override_methods/implicitly_shard_accessed_collections.js" );          jsTest.authenticate(db.getMongo());        <<: *authOptions    fixture: Then run the attached test like this: python buildscripts/resmoke.py run --suites=search_end_to_end_sharded_cluster jstests/with_mongot/e2e/repro.js
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This attached will hit an invariant failure like so:

       [j0:s0:prim] 2025-03-27T19:11:17.293Z F  ASSERT   [conn63] Invariant failure {"expr":"this->is_initialized()","location":"src/third_party/boost/boost/optional/optional.hpp:1270:reference_type boost::optional<mongo::UUID>::get() [T = mongo::UUID]"}
      [j0:s0:prim] 2025-03-27T19:11:17.293Z F  ASSERT   [conn63] ***aborting after invariant() failure

      I think this is just an issue with the search index setup code in the test.

       

      Found while investigating a reproduction script for SERVER-102874.

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None