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

Possible division by zero in execution control throughput calculation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Execution Team 2023-05-29
    • 135

      When calculating throughput for throughput probing, we simply divide the number of operations completed by the time elapsed. While we would expect the time elapsed to never be zero here, we don't protect against it in case the Timer interface does return zero for one reason or another. Thus we would end up dividing by zero, resulting in a throughput of either Infinity or NaN depending on the dividend.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: