ionelmc / python-redis-lock

Lock context manager implemented via redis SET NX EX and BLPOP.
https://pypi.python.org/pypi/python-redis-lock
BSD 2-Clause "Simplified" License
551 stars 77 forks source link

UnicodeDecodeError when decoding owner_id #64

Closed mayli closed 5 years ago

mayli commented 5 years ago
redis_lock/__init__.py", line 219, in get_owner_id
    owner_id = owner_id.decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: ordinal not in range(128)

It seems to be introduced by this commit, which will crash the new version when trying to acquire an lock holding by the old version.

ionelmc commented 5 years ago

Oooof ... so I guess you do rolling upgrades?