Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cursor id <id> not found #8249

Closed
deser opened this issue Oct 14, 2019 · 4 comments
Closed

Error: cursor id <id> not found #8249

deser opened this issue Oct 14, 2019 · 4 comments
Milestone

Comments

@deser
Copy link

deser commented Oct 14, 2019

Do you want to request a feature or report a bug?
bug

What is the current behavior?
In latest mongoose ( I tested 5.7.4 and 5.7.5) in my tests I see Error: cursor id 9058772029368767025 not found error. When I downgrade to 5.7.1 everything is ok.

What is the expected behavior?
In 5.7.5 my tests doesn't fail

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
node: v10.16.1
mongodb: 4.2

@vkarpov15
Copy link
Collaborator

Can you please provide the code that is failing and a stack trace? Without that it's hard for me to guess what the issue might be.

@vkarpov15 vkarpov15 added the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Oct 17, 2019
@AndrewBarba
Copy link

AndrewBarba commented Oct 18, 2019

I'm seeing the same issue on 5.7.5. Query looks like:

model
  .find(options)
  .read('sp')
  .batchSize(1000)
  .cursor()
  .eachAsync(func, { parallel: 100 })

And I'm seeing two variations of the error:

MongoError: cursor id 8065450018539360080 is already in use
    at Connection.<anonymous> (/var/task/node_modules/mongodb/lib/core/connection/pool.js:466:61)
    at Connection.emit (events.js:198:13)
    at Connection.EventEmitter.emit (domain.js:448:20)
    at processMessage (/var/task/node_modules/mongodb/lib/core/connection/connection.js:364:10)
    at TLSSocket.<anonymous> (/var/task/node_modules/mongodb/lib/core/connection/connection.js:533:15)
    at TLSSocket.emit (events.js:198:13)
    at TLSSocket.EventEmitter.emit (domain.js:448:20)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at TLSSocket.Readable.push (_stream_readable.js:224:10)
    at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
MongoError: cursor id 859394183419277556 not found
    at Connection.<anonymous> (/var/task/node_modules/mongodb/lib/core/connection/pool.js:466:61)
    at Connection.emit (events.js:198:13)
    at Connection.EventEmitter.emit (domain.js:448:20)
    at processMessage (/var/task/node_modules/mongodb/lib/core/connection/connection.js:364:10)
    at TLSSocket.<anonymous> (/var/task/node_modules/mongodb/lib/core/connection/connection.js:533:15)
    at TLSSocket.emit (events.js:198:13)
    at TLSSocket.EventEmitter.emit (domain.js:448:20)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at TLSSocket.Readable.push (_stream_readable.js:224:10)
    at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

@AndrewBarba
Copy link

@vkarpov15 Seems very much related to #8235

@vkarpov15
Copy link
Collaborator

@AndrewBarba is right, this looks like a duplicate of #8235. Should be fixed in 5.7.6

@vkarpov15 vkarpov15 added this to the 5.7.6 milestone Oct 21, 2019
@vkarpov15 vkarpov15 removed the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants