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

Investigate and fix test failure at jstests/aggregation/sources/lookup/lookup_subpipeline_and_fields.js

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      This issue happens when featureFlagSBELookupPushdown is turned on.

      test suite:

      • aggregation_sharded_collections_causally_consistent_passthrough

      [js_test:lookup_subpipeline_and_fields] uncaught exception: Error: command failed: {
      [js_test:lookup_subpipeline_and_fields] "ok" : 0,
      [js_test:lookup_subpipeline_and_fields] "errmsg" : "sharding status of collection lookup_subpipeline_and_fields.view is not currently available for description and needs to be recovered from the config server",
      [js_test:lookup_subpipeline_and_fields] "code" : 13388,
      [js_test:lookup_subpipeline_and_fields] "codeName" : "StaleConfig",
      [js_test:lookup_subpipeline_and_fields] "ns" : "lookup_subpipeline_and_fields.view",
      [js_test:lookup_subpipeline_and_fields] "vReceived" : Timestamp(0, 0),
      [js_test:lookup_subpipeline_and_fields] "vReceivedEpoch" : ObjectId("00000000ffffffffffffffff"),
      [js_test:lookup_subpipeline_and_fields] "vReceivedTimestamp" : Timestamp(4294967295, 4294967295),
      [js_test:lookup_subpipeline_and_fields] "shardId" : "shard-rs0",
      [js_test:lookup_subpipeline_and_fields] "$clusterTime" : {
      [js_test:lookup_subpipeline_and_fields] "clusterTime" : Timestamp(1647724601, 35),
      [js_test:lookup_subpipeline_and_fields] "signature" :

      { [js_test:lookup_subpipeline_and_fields] "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), [js_test:lookup_subpipeline_and_fields] "keyId" : NumberLong(0) [js_test:lookup_subpipeline_and_fields] }

      [js_test:lookup_subpipeline_and_fields] },
      [js_test:lookup_subpipeline_and_fields] "operationTime" : Timestamp(1647724601, 35)
      [js_test:lookup_subpipeline_and_fields] } with original command request: {
      [js_test:lookup_subpipeline_and_fields] "query" : {
      [js_test:lookup_subpipeline_and_fields] "aggregate" : "animals",
      [js_test:lookup_subpipeline_and_fields] "pipeline" : [
      [js_test:lookup_subpipeline_and_fields] {
      [js_test:lookup_subpipeline_and_fields] "$lookup" : {
      [js_test:lookup_subpipeline_and_fields] "from" : "view",
      [js_test:lookup_subpipeline_and_fields] "localField" : "locationId",
      [js_test:lookup_subpipeline_and_fields] "foreignField" : "my_id",
      [js_test:lookup_subpipeline_and_fields] "as" : "location",
      [js_test:lookup_subpipeline_and_fields] "pipeline" : [
      [js_test:lookup_subpipeline_and_fields] {
      [js_test:lookup_subpipeline_and_fields] "$match" : {
      [js_test:lookup_subpipeline_and_fields] "$expr" :

      { [js_test:lookup_subpipeline_and_fields] "$in" : [ [js_test:lookup_subpipeline_and_fields] 60, [js_test:lookup_subpipeline_and_fields] "$coordinates" [js_test:lookup_subpipeline_and_fields] ] [js_test:lookup_subpipeline_and_fields] }

      [js_test:lookup_subpipeline_and_fields] }
      [js_test:lookup_subpipeline_and_fields] }
      [js_test:lookup_subpipeline_and_fields] ]
      [js_test:lookup_subpipeline_and_fields] }
      [js_test:lookup_subpipeline_and_fields] }
      [js_test:lookup_subpipeline_and_fields] ],
      [js_test:lookup_subpipeline_and_fields] "cursor" :

      { [js_test:lookup_subpipeline_and_fields] [js_test:lookup_subpipeline_and_fields] }

      ,
      [js_test:lookup_subpipeline_and_fields] "lsid" :

      { [js_test:lookup_subpipeline_and_fields] "id" : UUID("b71f4b36-b6fe-47bb-89d4-f98c893fdaa6") [js_test:lookup_subpipeline_and_fields] }

      ,
      [js_test:lookup_subpipeline_and_fields] "$clusterTime" : {
      [js_test:lookup_subpipeline_and_fields] "clusterTime" : Timestamp(1647724601, 35),
      [js_test:lookup_subpipeline_and_fields] "signature" :

      { [js_test:lookup_subpipeline_and_fields] "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), [js_test:lookup_subpipeline_and_fields] "keyId" : NumberLong(0) [js_test:lookup_subpipeline_and_fields] }

      [js_test:lookup_subpipeline_and_fields] },
      [js_test:lookup_subpipeline_and_fields] "readConcern" :

      { [js_test:lookup_subpipeline_and_fields] "afterClusterTime" : Timestamp(1647724601, 35) [js_test:lookup_subpipeline_and_fields] }

      [js_test:lookup_subpipeline_and_fields] },
      [js_test:lookup_subpipeline_and_fields] "$readPreference" :

      { [js_test:lookup_subpipeline_and_fields] "mode" : "secondary" [js_test:lookup_subpipeline_and_fields] }

      [js_test:lookup_subpipeline_and_fields] } on connection: connection to localhost:20003 : aggregate failed :
      [js_test:lookup_subpipeline_and_fields] _getErrorWithCode@src/mongo/shell/utils.js:24:13
      [js_test:lookup_subpipeline_and_fields] doassert@src/mongo/shell/assert.js:18:14
      [js_test:lookup_subpipeline_and_fields] _assertCommandWorked@src/mongo/shell/assert.js:737:25
      [js_test:lookup_subpipeline_and_fields] assert.commandWorked@src/mongo/shell/assert.js:829:16
      [js_test:lookup_subpipeline_and_fields] DB.prototype._runAggregate@src/mongo/shell/db.js:286:12
      [js_test:lookup_subpipeline_and_fields] DBCollection.prototype.aggregate@src/mongo/shell/collection.js:974:21
      [js_test:lookup_subpipeline_and_fields] @jstests/aggregation/sources/lookup/lookup_subpipeline_and_fields.js:222:25
      [js_test:lookup_subpipeline_and_fields] @jstests/aggregation/sources/lookup/lookup_subpipeline_and_fields.js:335:2

            Assignee:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: