-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Ask to extend ConnectionMultiplexer.IncludeDetailInExceptions check to more places #1967
Comments
The main purpose of that flag is to avoid include "data" such as keys in exception messages, which can cause problems in some environments. The message "UnableToResolvePhysicalConnection on UNLINK , unable to write batch" doesn't include any "data" - it just tells you what went wrong in broad terms. I'm not sure there's anything we need to fix there. Can you be more specific as to what problem we want to resolve here? |
Sorry, I wasn't careful enough with text formatting and used <>.
cause |
@ORuban Ah okay, now I understand the ask. I believe including it in this case is intentional. This isn't a one-off command that failed but something severe enough to kill a connection. In that case, we want to include the key by default to help users debug what may be a massive key fetch and similar problems. |
There seems to be just 1 case not covered by the IncludeDetailsInExceptions option on ConnectionMultiplexer - this remedies that. The option is on by default so this shouldn't break people like I thought initially. Overall, we should probably also move this option to ConfigurationOptions and defaults if we do that (#1987).
There seems to be just 1 case not covered by the `IncludeDetailsInExceptions` option on `ConnectionMultiplexer` - this remedies that. The option is on by default so this shouldn't break people like I thought initially. Overall, we should probably also move this option to `ConfigurationOptions` and defaults if we do that (#1987).
ConnectionMultiplexer currently has a
IncludeDetailInExceptions
flag with the following descriptionwhich expected to mean that when
IncludeDetailInExceptions=True
on multiplexer, it might include command and key, otherwise only command.Though, it is still possible to receive error messages like below when flag is disabled:
based on code, it may happen due to below logic in
ResultProcessor
class that doesn't checkIncludeDetailInExceptions
flag:The text was updated successfully, but these errors were encountered: