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

invalid_system_views.js fails in query_stats_passthrough

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QI 2023-09-18

      SERVER-76220 was intended to unlock coverage of tests with the "references_foreign_collection" tag in the query_stats_passthrough. However, invalid_system_views.js fails with the error:

      "Error: listCollections failed: "Invalid view definition detected in the view catalog. Remove the invalid view manually to prevent disallowing any further usage of the view catalog." 

       

      Full stack trace:

      [js_test:invalid_system_views:ValidateCollections] uncaught exception: Error: command failed: {
      [js_test:invalid_system_views:ValidateCollections]      "ok" : 0,
      [js_test:invalid_system_views:ValidateCollections]      "error" : "Error: listCollections failed: {\n\t\"ok\" : 0,\n\t\"errmsg\" : \"Invalid view definition detected in the view catalog. Remove the invalid view manually to prevent disallowing any further usage of the view catalog.\",\n\t\"code\" : 182,\n\t\"codeName\" : \"InvalidViewDefinition\"\n}",
      [js_test:invalid_system_views:ValidateCollections]      "stack" : "_getErrorWithCode@src/mongo/shell/utils.js:24:13\nDB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:701:15\nDB.prototype.getCollectionInfos@src/mongo/shell/db.js:749:21\n@eval:48:27\n@eval:28:50\n_threadStartWrapper@:26:28\n",
      [js_test:invalid_system_views:ValidateCollections]      "host" : "localhost:20000"
      [js_test:invalid_system_views:ValidateCollections] } : Collection validation failed :
      [js_test:invalid_system_views:ValidateCollections] _getErrorWithCode@src/mongo/shell/utils.js:24:13
      [js_test:invalid_system_views:ValidateCollections] doassert@src/mongo/shell/assert.js:18:14
      [js_test:invalid_system_views:ValidateCollections] _assertCommandWorked@src/mongo/shell/assert.js:766:25
      [js_test:invalid_system_views:ValidateCollections] assert.commandWorked@src/mongo/shell/assert.js:860:16
      [js_test:invalid_system_views:ValidateCollections] CollectionValidator/this.validateNodes/<@jstests/hooks/validate_collections.js:160:24
      [js_test:invalid_system_views:ValidateCollections] CollectionValidator/this.validateNodes@jstests/hooks/validate_collections.js:159:24
      [js_test:invalid_system_views:ValidateCollections] @jstests/hooks/run_validate_collections.js:82:27
      [js_test:invalid_system_views:ValidateCollections] @jstests/hooks/run_validate_collections.js:94:3
      [js_test:invalid_system_views:ValidateCollections] failed to load: jstests/hooks/run_validate_collections.js

            Assignee:
            mariano.shaar@mongodb.com Mariano Shaar
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: