Created
September 24, 2020 20:53
-
-
Save kevinAlbs/34e377d226a0394d016de436bfe829ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB Enterprise > db.runCommand({find: "capped", maxTimeMS: 1, batchSize: 1, tailable: true}) | |
{ | |
"cursor" : { | |
"firstBatch" : [ | |
{ | |
"_id" : ObjectId("5f6d0506aeed084eb2d0847e"), | |
"x" : 1 | |
} | |
], | |
"id" : NumberLong("6854027525062436626"), | |
"ns" : "test.capped" | |
}, | |
"ok" : 1 | |
} | |
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1}) | |
{ | |
"cursor" : { | |
"nextBatch" : [ | |
{ | |
"_id" : ObjectId("5f6d0506aeed084eb2d0847f"), | |
"x" : 1 | |
} | |
], | |
"id" : NumberLong("6854027525062436626"), | |
"ns" : "test.capped" | |
}, | |
"ok" : 1 | |
} | |
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1}) | |
{ | |
"cursor" : { | |
"nextBatch" : [ | |
{ | |
"_id" : ObjectId("5f6d0507aeed084eb2d08480"), | |
"x" : 1 | |
} | |
], | |
"id" : NumberLong("6854027525062436626"), | |
"ns" : "test.capped" | |
}, | |
"ok" : 1 | |
} | |
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1}) | |
{ | |
"cursor" : { | |
"nextBatch" : [ | |
{ | |
"_id" : ObjectId("5f6d0508aeed084eb2d08481"), | |
"x" : 1 | |
} | |
], | |
"id" : NumberLong("6854027525062436626"), | |
"ns" : "test.capped" | |
}, | |
"ok" : 1 | |
} | |
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1}) | |
{ | |
"ok" : 0, | |
"errmsg" : "operation exceeded time limit", | |
"code" : 50, | |
"codeName" : "MaxTimeMSExpired" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment