Skip to content
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

Negative Expiration Issues #154

Open
owensk opened this issue Jul 24, 2014 · 2 comments
Open

Negative Expiration Issues #154

owensk opened this issue Jul 24, 2014 · 2 comments

Comments

@owensk
Copy link

owensk commented Jul 24, 2014

On a fresh install of Ubuntu 12.04 LTS, perform the following steps.

In Shell:
apt-get install python-pip memcached python-dev libmemcached-dev
pip install pylibmc

In Python 2,7,3:
import pylibmc
mc = pylibmc.Client(["127.0.0.1:11211"])
mc.set("test", 3, -1)

Results:

Exception raised from pylibmc:
Traceback (most recent call last):
File "", line 1, in
_pylibmc.ClientError: error 9 from memcached_set: CLIENT ERROR

In Memcached Log:
set test 2 18446744073709551615 1

Expected in Memcached Log:
set test 2 -1 1

@owensk
Copy link
Author

owensk commented Jul 24, 2014

Note: In order to see the observed and expected values in the memcached log, I had to uncomment the "-vv" line in /etc/memcached.conf to enable verbose logging.

@lericson
Copy link
Owner

lericson commented Aug 8, 2014

Thank you for reporting this, @owensk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants