write failure followed by an allocation failure
hi all,
I use memcached 1.4.13 and libmemcached 1.0.4 on CentOS 5.5 64bit. Once the SET operation failed because server temporarily out of memory, the following retry will get write failure error, and it can never auto recovery. My application code looks like this:
retry = 0;
do {
g_rc = memcached_
if (g_rc != MEMCACHED_SUCCESS) {
} else {
break;
}
Wait(10000); // 10000ms
} while (++retry < 3);
output:
Set_Failed: /data/_
Set_Failed: /data_lcsO_
Set_Failed: /data/_
Set_Failed: /data/PANI_
Set_Failed: /data/PANI_
error code 17:MEMCACHED_
so after a failure of allocation, the app is trapped in write failure and can never recovery.
any hint?
Question information
- Language:
- English Edit question
- Status:
- Open
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Huabin Zheng for more information if necessary.