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

Count does not honor maxTimeMS

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.2, 2.7.5
    • Component/s: JavaScript, Shell
    • Labels:
      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

      the maxTimeMS option is ignored for the count command

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

              Created:
              Updated:
              Resolved: