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

maxStalenessSeconds doesn't appear in cursor.readPref()

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0
    • Component/s: None
    • Sharding NYC
    • ALL
    • Hide
      mongos> db.foo.insert({"name":"foo"})
      WriteResult({ "nInserted" : 1 })
      mongos> db.foo.find().readPref
      function (mode, tagSet) {
          var readPrefObj = {mode: mode};
      
          if (tagSet) {
              readPrefObj.tags = tagSet;
          }
      
          return this._addSpecial("$readPreference", readPrefObj);
      }
      
      Show
      mongos> db.foo.insert({ "name" : "foo" }) WriteResult({ "nInserted" : 1 }) mongos> db.foo.find().readPref function (mode, tagSet) { var readPrefObj = {mode: mode}; if (tagSet) { readPrefObj.tags = tagSet; } return this._addSpecial( " $readPreference " , readPrefObj); }
    • Sharding 2017-01-02

      maxStalenessSeconds isn't showing up in the cursor.readPref method implementation. I was under the impression that maxStalenessSeconds should also be applicable for the readPref method though I may of course be mistaken.

      I noticed this while documenting maxStalenessSeconds.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            allison.moore@mongodb.com Allison Reinheimer Moore (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: