Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

stats bug for cmd_get #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. telnet into memcached
2. type stats
3. cmd_get will be the same as get_hits

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

Theoretically, cmd_get should be the same as get_hits + get_misses, but
cmd_get is always the same as get_hits.

What version of the product are you using? On what operating system?

1.4.2 on Ubuntu 8.04

Please provide any additional information below.

Original issue reported on code.google.com by benct...@gmail.com on 28 Oct 2009 at 10:44

GoogleCodeExporter commented 9 years ago
I can confirm the reproduction of this with 1.4.2 and Ubuntu 8.04. I tried this 
also
with 1 thread and 4 threads. Producing the same results.

Sample data was 99 inserts 149 gets.
Producing 99 hits and 50 misses.

STAT pid 1773
STAT uptime 21
STAT time 1256828076
STAT version 1.4.2
STAT pointer_size 32
STAT rusage_user 0.004000
STAT rusage_system 0.012000
STAT curr_connections 4
STAT total_connections 7
STAT connection_structures 5
STAT cmd_get 99
STAT cmd_set 99
STAT cmd_flush 0
STAT get_hits 99
STAT get_misses 50
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT bytes_read 172744
STAT bytes_written 171700
STAT limit_maxbytes 16777216
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 1
STAT conn_yields 0
STAT bytes 173628
STAT curr_items 99
STAT total_items 99
STAT evictions 0

Original comment by nerdynick on 29 Oct 2009 at 3:01

GoogleCodeExporter commented 9 years ago
Patch at: http://github.com/trondn/memcached/tree/issue_104

Original comment by trond.no...@gmail.com on 29 Oct 2009 at 6:58

GoogleCodeExporter commented 9 years ago
Thanks, Trond.

Original comment by dsalli...@gmail.com on 29 Oct 2009 at 9:21