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

sharding read_after_optime.js test timeout should exceed ping interval

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.4, 3.3.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • 0

      The balancer continually updates the config server. The interval used by the balancer needs to be taken in account when choosing an appropriate readConcern timeout for the test.

      To reproduce, change the maxTimeMS in this line from 5000 ms to some value larger than the ping interval (10 secs):

          var runFindCommand = function(ts) {
              return primaryConn.getDB('local').runCommand({
                  find: 'oplog.rs',
                  readConcern: {
                      afterOpTime: {
                          ts: ts,
                          t: term,
                      },
                  },
                  maxTimeMS: 5000, <- change to 20000
              });
          };
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: