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

Router role retry loop should allow namespaces different from the one it was created for

    • Query Execution
    • Fully Compatible
    • ALL
    • v7.0, v6.3, v6.0
    • Hide

      The following steps (or the attached file reproduce the problem):

      var st = new ShardingTest({config:1, mongos:1, shards: 1});
      var D = st.s0.getDB('D');
      
      D.A.insert({Key:1, Value:1});
      D.B.insert({Key:1, Value:1});
      D.C.insert({Key:1, Value:1});
      D.D.insert({Key:1, Value:1});
      
      const aggPipeline = [{$lookup: {from: "B", localField: "Key", foreignField: "Value", as:"Joined", pipeline: [{$lookup: {from: "C", localField: "Key", foreignField: "Value", as: "Joined"}},{$lookup: {from: "D", localField: "Key", foreignField: "Value", as: "Joined"}}]}}];
      
      // Won't crash
      D.A.aggregate(aggPipeline);
      
      st.restartShardRS(0);
      
      // Will crash
      D.A.aggregate(aggPipeline);
      
      Show
      The following steps (or the attached file reproduce the problem): var st = new ShardingTest({config:1, mongos:1, shards: 1}); var D = st.s0.getDB( 'D' ); D.A.insert({Key:1, Value:1}); D.B.insert({Key:1, Value:1}); D.C.insert({Key:1, Value:1}); D.D.insert({Key:1, Value:1}); const aggPipeline = [{$lookup: {from: "B" , localField: "Key" , foreignField: "Value" , as: "Joined" , pipeline: [{$lookup: {from: "C" , localField: "Key" , foreignField: "Value" , as: "Joined" }},{$lookup: {from: "D" , localField: "Key" , foreignField: "Value" , as: "Joined" }}]}}]; // Won't crash D.A.aggregate(aggPipeline); st.restartShardRS(0); // Will crash D.A.aggregate(aggPipeline);
    • Sharding EMEA 2023-04-17
    • 107

      1. aggregate_3_levels_repro.js
        0.6 kB
        Kaloian Manassiev

          Assignee:
          kaloian.manassiev@mongodb.com Kaloian Manassiev
          Reporter:
          kevin.cherkauer@mongodb.com Kevin Cherkauer
          Votes:
          0 Vote for this issue
          Watchers:
          10 Start watching this issue

            Created:
            Updated:
            Resolved: