-
Notifications
You must be signed in to change notification settings - Fork 28
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: Connection closed while executing command when doing secondaryIndexQueryAsync [JIRA: CLIENTS-1093] #187
Comments
How did you set this timeout?
I don't understand this statement. Are you saying that the query did re-try in your scenario, but you would expect it not to re-try?
This is caused by Riak closing the connection, or a proxy between your application closing the connection.
|
so default timeouts is used I assume
No, it is not retry, but I expect that it will
but for this command it is not logged.
not using proxy. often occurs more In peak time, in total about ~300-400 per day. |
@mogadanez thanks for all of your information. I don't know why the command is not re-trying in your situation. I will keep looking into that. If you could log What is happening is that, at peak time, the additional cluster load causes secondary index queries to exceed the client-side request timeout of 5 seconds (timeout is set here). You can see this in your stack trace (I didn't notice it the first time I looked):
This means that the command took longer than the default of 5 seconds to execute. The internal timeout in Riak for a secondary index query is 60 seconds, so you could use the Note that change affects every request to Riak. Another option would be to increase This means that Riak will spend a maximum of You will have to experiment to find the best |
2.4
6.5.0
2.14
Debian Jessie stable
error.log
file, if applicablegot Error:
I have timeout 20 sec. this queries stale for this timeout and not try to recover according to [executionAttempts=3] setting
The text was updated successfully, but these errors were encountered: