Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.6.5, 1.7.1
-
Security Level: Public
-
membase 1.6.5.5
membase-server 1.7.1r-68-g5d4d0d7
Description
After the running the flushctl to evict the key and modifying the value in DB, I still get old the value.
Here is the code to reproduce this.
I have tried this with mbflushctl of 1.7.1 build and I get the same response.
<?php
$mc = new memcache();
$mc->addserver("localhost", 11211);
$mc->set("test", "123");
shell_exec("/opt/membase/bin/ep_engine/management/flushctl localhost:11211 evict test");
sleep(2);
shell_exec(" sudo sqlite3 /db/membase/default-3.sqlite 'update kv set v=900;'");
sleep(1);
echo "value in sqlite DB:".shell_exec("sudo sqlite3 /db/membase/default-3.sqlite 'select v from kv;'")."\n";
echo "value in memory:".$mc->get("test")."\n";
?>
Even deleting the sqlite DB after evicting returns the old value.