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

ttl_capped.js should wait longer for the TTL monitor to run

    • Fully Compatible
    • QuInt B (11/02/15)

      Task
      Logs

      [js_test:ttl_capped] 2015-10-12T18:55:11.216+0000 2015-10-12T18:55:11.215+0000 E QUERY    [thread1] Error: [1] != [0] are not equal : undefined :
      [js_test:ttl_capped] 2015-10-12T18:55:11.216+0000 doassert@src/mongo/shell/assert.js:15:14
      [js_test:ttl_capped] 2015-10-12T18:55:11.217+0000 assert.eq@src/mongo/shell/assert.js:43:5
      [js_test:ttl_capped] 2015-10-12T18:55:11.217+0000 @jstests/noPassthrough/ttl_capped.js:47:1
      [js_test:ttl_capped] 2015-10-12T18:55:11.217+0000 @jstests/noPassthrough/ttl_capped.js:7:2
      [js_test:ttl_capped] 2015-10-12T18:55:11.217+0000
      [js_test:ttl_capped] 2015-10-12T18:55:11.218+0000 d20010| 2015-10-12T18:55:11.215+0000 I COMMAND  [conn1] command test.ttl_before command: count { count: "ttl_before", query: {}, fields: {} } planSummary: COUNT ntoreturn:1 ntoskip:0 keyUpdates:0 writeConflicts:0 numYields:0 reslen:47 locks:{ Global: { acquireCount: { r: 2 } }, MMAPV1Journal: { acquireCount: { r: 1 } }, Database: { acquireCount: { r: 1 } }, Collection: { acquireCount: { R: 1 } } } protocol:op_command 0ms
      [js_test:ttl_capped] 2015-10-12T18:55:11.218+0000 failed to load: jstests/noPassthrough/ttl_capped.js
      

      Additional failure:

      Proprosal is to change ttl_capped.js to wait for TTL monitor to run by checking metrics.ttl.passes in the serverStatus response in an assert.soon().

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: