Welcome! Log In Create A New Profile

Advanced

Issue 140 in memcached: "stats items" does not return correct "age" value

Posted by Anonymous User 
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 140 by sanjeevagrawal: "stats items" does not return
correct "age" value
http://code.google.com/p/memcached/issues/detail?id=140

What steps will reproduce the problem?

1. Add hundreds of unique entries with long expiration (10 days)
2. Keep updating some of the existing entries and add some more over next
couple of days.
3. Check the age with "stats items"

What is the expected output? What do you see instead?

Expecting "age" to be that of the first item inserted.
I see that the age is of one of the more recent new or updated entries.


What version of the product are you using? On what operating system?
memcached - 1.4.4
Linux - 2.6.18-128.7.1.el5xen, centos 5.2

Thanks.

Sanjeev

Please provide any additional information below.

Our older version 1.2.6 seems to be working fine.
Comment #1 on issue 140 by brandon.evans: "stats items" does not return
correct "age" value
http://code.google.com/p/memcached/issues/detail?id=140

This issue is happening in memcached 1.4.5 also however it seems like
Max_Age simply stops counting up altogether.


What version of the product are you using? On what operating system?
memcached - 1.4.5
Linux - 2.6.18-53.el5, centos 5.2
libevent 1.4


Please provide any additional information below.

Here I check the stats, sleep 5 seconds then check the stats again. Notice
the item count goes up but the age does not go up or down.

./scripts/memcached-tool memcache2:11211 > /tmp/stats.old;sleep
5; ./scripts/memcached-tool memcache2:11211 > /tmp/stats.new; diff
/tmp/stats.old /tmp/stats.new
7,10c7,10
< 6 304B 11s 15 50998 no 0 0 0
< 7 384B 16s 2 4158 no 0 0 0
< 8 480B 2s 31 66902 no 0 0 0
< 9 600B 28s 5 7363 no 0 0 0
---
> 6 304B 11s 15 50999 no 0 0 0
> 7 384B 16s 2 4155 no 0 0 0
> 8 480B 2s 31 66912 no 0 0 0
> 9 600B 28s 5 7365 no 0 0 0
15,17c15,17
< 14 1.8K 2s 5 2669 no 0 0 0
< 15 2.3K 26s 8 3338 no 0 0 0
< 16 2.8K 19s 8 2706 no 0 0 0
---
> 14 1.8K 2s 5 2670 no 0 0 0
> 15 2.3K 26s 8 3339 no 0 0 0
> 16 2.8K 19s 8 2708 no 0 0 0
22c22
< 21 8.7K 4s 23 2657 no 0 0 0
---
> 21 8.7K 4s 23 2658 no 0 0 0
24c24
< 23 13.6K 3s 83 6155 no 0 0 0
---
> 23 13.6K 3s 83 6156 no 0 0 0
29c29
< 28 41.4K 51s 37 882 no 0 0 0
---
> 28 41.4K 51s 37 883 no 0 0 0
Comment #4 on issue 140 by sanjeeva...@gmail.com: "stats items" does not
return correct "age" value
http://code.google.com/p/memcached/issues/detail?id=140

Is it possible to get a fix for this soon? It used to work in the old
version (1.2.6)

Thanks.

Sanjeev
Sorry, only registered users may post in this forum.

Click here to login