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
'UnixDomainSocketConnection' object has no attribute '_command_packer' #2581
Comments
also seeing this in our apps, had to pin to 4.4.2 to prevent our django app from crashing anytime it attempted to use the cache |
I guess this is the issue: class Connection:
def __init__(self, ...):
...
self._command_packer = self._construct_command_packer(command_packer)
class SSLConnection(Connection):
def __init__(self, ...):
...
super().__init__(...)
class UnixDomainSocketConnection(Connection):
def __init__(self, ...):
# does not call _construct_command_packer nor super().__init__() |
Looks like there is no synchronous tests that run any command on SSLConnection/UnixDomainSocketConnection. |
Actually |
The fact that |
Lastly there is The rest is identical. |
…command_packer' . Apparently there is no end-to-end tests for Unix sockets so automation didn't catch it. I assume that setting up domain sockets reliably in dockerized environment is not very trivial. Added test for pack_command specifically.
@woutdenolf @TheUbuntuGuy @chayim @dvora-h @chayim @dvora-h |
redis/redis-py#2581 It's one of those days...
Version: v4.5.0
Platform: Debian Bullseye using Python v3.9.2
Description:
The following code which used to work on up to and including v4.4.2 now crashes with the stack trace below on v4.5.0.
The text was updated successfully, but these errors were encountered: