MemcacheRing logs ValueError: invalid literal for int() with base 10: 'NOT_FOUND'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Alistair Coles |
Bug Description
We've seen tracebacks like:
```
proxy-server: err Error talking to memcached: 127.0.0.1:5556: #012Traceback (most recent call last):#012 File "/opt/ss/
```
The MemcacheRing.incr method first tries a memcached incr. This may fail if the key does not exist. A memcached add is then tried. This may fail if another actor has concurrently added the key. A further incr is then tried, which fails and raises the ValueError exception if the key has now expired.
We've only seen this in the context of a proprietary middleware that creates keys with relatively short TTLs, and very occasionally the MemcacheRing.incr thread executes slowly enough for the key to concurrently expire in this way.
Changed in swift: | |
status: | New → In Progress |
https:/ /review. opendev. org/c/openstack /swift/ +/880677