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

sh.status() failed with err "collection or index disappeared when cursor yielded"

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding
    • ALL

      sh.status() failed with the following error message. Subsequent calls to sh.status() succeeded.

      mongos> sh.status()
      assert: command failed: {
              "ok" : 0,
              "errmsg" : "collection or index disappeared when cursor yielded: CappedPositionLost: CollectionScan died due to position in capped collection being deleted. Last seen record id: RecordId(2503660)",
              "code" : 16028,
              "codeName" : "Location16028"
      } : aggregate failed
      _getErrorWithCode@src/mongo/shell/utils.js:25:13
      doassert@src/mongo/shell/assert.js:16:14
      assert.commandWorked@src/mongo/shell/assert.js:370:5
      DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
      sh.getRecentMigrations@src/mongo/shell/utils_sh.js:580:18
      printShardingStatus@src/mongo/shell/utils_sh.js:761:26
      sh.status@src/mongo/shell/utils_sh.js:89:5
      @(shell):1:1
      
      2016-12-21T13:14:02.179+0000 E QUERY    [main] Error: command failed: {
              "ok" : 0,
              "errmsg" : "collection or index disappeared when cursor yielded: CappedPositionLost: CollectionScan died due to position in capped collection being deleted. Last seen record id: RecordId(2503660)",
              "code" : 16028,
              "codeName" : "Location16028"
      } : aggregate failed :
      _getErrorWithCode@src/mongo/shell/utils.js:25:13
      doassert@src/mongo/shell/assert.js:16:14
      assert.commandWorked@src/mongo/shell/assert.js:370:5
      DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
      sh.getRecentMigrations@src/mongo/shell/utils_sh.js:580:18
      printShardingStatus@src/mongo/shell/utils_sh.js:761:26
      sh.status@src/mongo/shell/utils_sh.js:89:5
      @(shell):1:1
      

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            brian.samek@mongodb.com Brian Samek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: