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

    XMLWordPrintableJSON

Details

    • 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

    Attachments

      Activity

        People

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

          Dates

            Created:
            Updated:
            Resolved: