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

Timeout is not respected #3129

Closed
lmenezes opened this issue Jun 4, 2013 · 3 comments
Closed

Timeout is not respected #3129

lmenezes opened this issue Jun 4, 2013 · 3 comments

Comments

@lmenezes
Copy link
Contributor

lmenezes commented Jun 4, 2013

On this issue #3128
if I add a timeout to the query(1ms, for example), the query instantly returns with no results, which is what I would expect.
But if the timeout is big enough(as to allow finding the document), then the query doesn't return at all,which is not what I would expect.
I guess this is the "desired" behavior, since the idea is to return whatever documents could be found before the timeout, and then highlight it and etc.
But if there are such cases where the highlighting is actually the "heavy" part of the query, doesn't it make sense to apply the timeout globally?

@kimchy
Copy link
Member

kimchy commented Jun 4, 2013

yea, this is the current behavior, where the timeout applies to the query execution part, and it is the intended behavior. It does make sense to allow for timeouts to apply to other aspects, but it gets tricky in terms of definition since what will end up being returned in some of those cases is tricky to define.

@lmenezes
Copy link
Contributor Author

lmenezes commented Jun 4, 2013

@kimchy true... But on the other hand, if I set a timeout of 3000ms for example, it just means I'm not willing to wait for more than that, and will timeout to the end client anyway.
Even though I can see all the benefits of timing out and still retrieving maybe a "partial result set", I think its even more useful to know that I wont have long queries running using resources when I don't care about their result anymore.
Maybe an "abort_on_timeout" option could do the trick and still maintaing the partial result timeout?

@clintongormley
Copy link
Contributor

Closed in favour of #4586

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