-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Extend EXECABORT with "previous errors" #4084
Comments
Hi @nerg4l |
Not sure if this will help. You will still need to set up a clustered Redis instance. (I used Redis Enterprise in my testing.)
|
@nerg4l Another option would be to propagate the error through the returned command If you don't need a pipelining, you can also look at |
@ggivo I think adding it as suppressed errors is good enough, and thanks for bringing my attention to |
Propagate errors in transaction on command queuing (e.g before actual EXEC). Errors are added as suppressed exceptions when EXEC is processed. https://redis.io/docs/latest/develop/interact/transactions/ -A command may fail to be queued, so there may be an error before EXEC is called. For instance the command may be syntactically wrong (wrong number of arguments, wrong command name, ...), or there may be some critical condition like an out of memory condition (if the server is configured to have a memory limit using the maxmemory directive). closes redis#4084
Propagate errors in transaction on command queuing (e.g before actual EXEC). Errors are added as suppressed exceptions when EXEC is processed. https://redis.io/docs/latest/develop/interact/transactions/ -A command may fail to be queued, so there may be an error before EXEC is called. For instance the command may be syntactically wrong (wrong number of arguments, wrong command name, ...), or there may be some critical condition like an out of memory condition (if the server is configured to have a memory limit using the maxmemory directive). closes redis#4084
Propagate errors in transaction on command queuing (e.g before actual EXEC). Errors are added as suppressed exceptions when EXEC is processed. https://redis.io/docs/latest/develop/interact/transactions/ -A command may fail to be queued, so there may be an error before EXEC is called. For instance the command may be syntactically wrong (wrong number of arguments, wrong command name, ...), or there may be some critical condition like an out of memory condition (if the server is configured to have a memory limit using the maxmemory directive). closes redis#4084
In a MULTI/EXEC environment, Jedis might receive the following response when an issue is detected:
In such cases, no information is included in the exception and because of the exception, the
redis.clients.jedis.Response
value is never set and throws an exception when the user tries to read it.Which is a bit misleading because the multi block was closed.
InpuStream example:
Is it possible to include these in the exception or to populate the
Response
objects and let the user find the relevant errors?The text was updated successfully, but these errors were encountered: