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

validate_db_metadata_command.js is not compatible with some jscore tests under some suites

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      0. Load implicitly_shard_accessed_collections.js
      1. Create a sharded cluster
      2. Run geo_near_tailable.js
      3. Run validate_db_metadata_command.js

      Show
      0. Load implicitly_shard_accessed_collections.js 1. Create a sharded cluster 2. Run geo_near_tailable.js 3. Run validate_db_metadata_command.js
    • Linked BF Score:
      43

      Description

      At the beginning of validate_db_metadata_command.js there is some cleanup in case the test is running after the execution of some other jscore test. Additionally, we have some suites that overwrite the getCollection and drop shell's functions to automatically shard the collections (that is, some suites load the implicitly_shard_accessed_collections.js script before running, like multi_shard_local_read_write_multi_stmt_txn_jscore_passthrough). Finally, we also have tests that create collections that cannot be sharded, like for example geo_near_tailable.js, so, joining those 3 facts, we might encounter some suites running validate_db_metadata_command.js after some jscore test that creates a non shardable collection, which will definitely fail when accessing the collection, because a shardCollection command will be automatically issued.

      Some ideas to solve this:

      1. The validate_db_metadata_command.js could be blacklisted from all the suites that automatically shard collections, for example using the assumes_standalone_mongod tag commited recently
      2. The validateDbMetadata command can have an optional filter parameter so on the test only a desired db is checked, as long as it ensures that the database name will be unique on each test execution

        Attachments

          Activity

            People

            Assignee:
            arun.banala Arun Banala
            Reporter:
            marcos.grillo Marcos José Grillo Ramirez
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: