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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: