Hi, I am using memcached 1.4.14 with spymemcached-2.8.2
I am performing the following steps:
<code>
Future<Boolean> appendDone = getClient().append(casValue.getCas(), genKey,
value + seperator);
try
{
int count = 1;
while (appendDone.get() == false && count <=maxRetries)
{
count++;
casValue = getClient().gets(genKey);
appendDone = getClient().append(casValue.getCas(),
genKey, value + seperator);
}
if (count > maxRetries)
{
logger.error(">>>>>>>>>>>> append - key="+key+" FAILED
TO APPEND: count="+count+" for value "+value.toString()+" finished max
retries !!!");
}
</code>
3. and then i am using get on the value
The append is synchronous and so i expect to get the value back on the get.
But sometimes i don't.
And then if i do sleep for 200 ms - and attempt again to get the value - i
do.
This is weird - cause I am waiting for the append to finish using .get()
and i see no errors that it failed.
I think it happens if the memcahced is installed with my server on the same
machine.
Any ideas? (I tried to upgrade the spymemcached to 2.9.1 but it didn't
help)..
Thanks
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.