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

QueryStats for sum of squares execution time overflows its int64_t

    • Query Integration
    • Minor Change
    • ALL
    • v8.0, v7.0, v6.0

      The data in trino is showing integer overflow for metrics_totalexecmicros_sumofsquares_delta.

      Looking at the server code, I can see that this is being calculated in a plain int64, which seems to be inadequate for the values we are seeing in production.

      https://github.com/10gen/mongo/blob/3d0ac1492d6b9aafa3b2786c598ec1f21fba0b94/src/mongo/db/query/query_stats/query_stats_entry.h#L83

            Assignee:
            erin.liang@mongodb.com Erin Liang
            Reporter:
            steve.tarzia@mongodb.com Steve Tarzia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: