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

Long Executor runOnce cycle.

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

      During some unrelated testing, the stream processor did not update its stats for multiple minutes for the following pipeline. The input topic has 1000 docs, each with a string field of size 1KB.

      {
                  $source: {
                      connectionName: kafkaPlaintextName,
                      topic: topicName1,
                      config: {auto_offset_reset: "earliest"},
                  }
              },
              { $addFields: { i: { $range: [0, 100] } } },
              { $unwind: "$i" },
              { $addFields: { ii: { $range: [ { $multiply: [ "$i", 100] }, { $multiply: [ { $add: [ "$i", 1 ] }, 100] } ] } } },
              { $unwind: "$ii" },
              {
                  $emit: {
                      connectionName: kafkaPlaintextName,
                      topic: "$_id"
                  }
              } 

      How can we avoid having a very long Executor runOnce cycle in this case?

            Assignee:
            Unassigned Unassigned
            Reporter:
            sandeep.dhoot@mongodb.com Sandeep Dhoot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: