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

maxTimeMs not respected for delay in query optimization

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.0, 8.1.0-rc0, 8.0.0
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • QE 2025-03-17, QE 2025-03-31, QE 2025-04-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If at some point before query execution we encounter a delay that exceeds the maxTimeMs set on a query, the query won't be killed; instead the query will be allowed to execute to completion & we may even get a slow-query log after.

      Note that if the query was issued on a sharded cluster, the router will correctly detect the timeout/ cancel the operation; however, the mongod will continue to execute the query past the timeout.

            Assignee:
            mickey.winters@mongodb.com Mickey Winters
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None