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

Count does not honor maxTimeMS

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.2, 2.7.5
    • JavaScript, Shell
    • None
    • ALL
    • Hide

      var d = db.getSisterDB("t").t;
      d.insert({a:1});
      d.runCommand({count:'t', query: {"$where": "sleep(1000) || true"}, maxTimeMS:50})

      Aborts correctly on 2.6.x but fails on 2.7.5

      Show
      var d = db.getSisterDB("t").t; d.insert({a:1}); d.runCommand({count:'t', query: {"$where": "sleep(1000) || true"}, maxTimeMS:50}) Aborts correctly on 2.6.x but fails on 2.7.5

    Description

      the maxTimeMS option is ignored for the count command

      Attachments

        Activity

          People

            Unassigned Unassigned
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: