Our server is running a memcached cluster with version 1.4.15, and we seem 
to run into a concurent trouble.

In our high concurrent system,
the client wanted to get key1(ctw9tjk) but got key2(cqv87p7)'s value, and 
both key1 and key2 is not found in memcached after then.


key1(ctw9tjk) is set early:

> 2015/03/26 12:08:10.475382 [DEBUG]: memcached.Get, key; ctw9tjk, err: 
> memcache: cache miss
> 2015/03/26 12:08:10.476899 [DEBUG]: memcached.Set, key; ctw9tjk, value: 
> {"soff":2631931,"fsize":1925921,"suids":[1674786],"psectors":[36962488550619]},
>  
> err: <nil>
>


wanted to get key1(ctw9tjk) but got key2(cqv87p7)'s value:

> 2015/03/26 23:22:51.990201 [DEBUG]: memcached.Get, key; ctw9tjk, value: 
> {"soff":2648567,"fsize":1989935,"suids":[1674249],"psectors":[55439437858695]},
>  
> err: <nil>
>


in the meanwhile, key2(cqv87p7) is fetched and updated

> 2015/03/26 23:22:51.986778 [DEBUG]: memcached.Get, key; cqv87p7, value: 
> {"soff":2648567,"fsize":1989935,"suids":[1674249],"psectors":[24927990187254]},
>  
> err: <nil>
> 2015/03/26 23:22:51.992312 [DEBUG]: memcached.Set, key; cqv87p7, value: 
> {"soff":2648567,"fsize":1989935,"suids":[1674249],"psectors":[55439437858695]},
>  
> err: <nil>
>


below is the related memcached's log 

<https://lh3.googleusercontent.com/-fLH0bXaDJUE/VRTW3sG3cwI/AAAAAAAABTQ/H0AmwSipvyg/s1600/11111.jpg>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to