-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
"MongoError: Cursor not found" on relational query #5226
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
Comments
Can you try with the latest version of parse-server and mongodb with version 3.x not 4.x? |
We have a significant overhaul to be ready for parse-server 3.x and downgrading mongo is pretty high risk for a sharded production cluster. |
So how was this issue discovered? |
As a side question, what is the necessity for sharding? |
we have a lesser used administrative feature that executed the query. because of the non-critical nature of this feature it isn't covered by tests. Sharding allows for a unified database that enforces sending requests to "shards" that reside in the same region as the user. for a New York user, why send a request from California to New York when you could access the New York servers directly. |
So what’s going on is likely the roles not being discoverable because of your usage of sharding. Not sure how to fix nor provide a proper reproduction step. |
@flovilmart I discovered the issue here. TL;DR We load balance our mongos servers behind a Kubernetes "service" but apparently mongos instances require session affinity. I'm looking for a solution now, I'll post what we find incase anyone else stumbles across the same issue. |
For future searchers, Per Mongo documentation each application servers should have it's own "mongos" instance. For us that looked like colocating a Parse Server and a Mongos in the same pod. |
Issue Description
This iOS query to get users of a certain role always return a "MongoError: Cursor not found" error
Steps to reproduce
Expected Results
The query returns users who are apart of the given role.
Actual Outcome
An internal server error is thrown and nothing is returned
Environment Setup
Server
Database
Logs/Trace
The text was updated successfully, but these errors were encountered: