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

When streaming call fails from mongo, results are returned with success and no documents #815

Open
alechenninger opened this issue Nov 28, 2017 · 1 comment
Labels

Comments

@alechenninger
Copy link
Contributor

The error I'm expecting is "Sort operation used more than the maximum 33554432 bytes of RAM" which can be seen when streaming is not used. When streaming, the response is "successful" but has no results. To me this tells me mongo is throwing the same error (to mongo it is the same request) but lightblue is handling it differently when streaming is used.

@bserdar
Copy link
Contributor

bserdar commented Dec 4, 2017

Exception is thrown when the first result is retrieved from the cursor. This happens in the REST layer, and there, exceptions are ignored.

I think the best way to handle this is to change the cursor code so that we retrieve the first result when cursor is constructed, and deal with the errors then and there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants