Hi there sorry if i wrote to a wrong place but could not find bug
reporting tool on the website.

I had strange problem on my continous integration server today. Unit
tests that were fine on laptops for some reason kept on failing on the
server. Finally debugging deeper and deeper i came to a strange
conclusion, that maybe memcache has a small problem with flushing.

I had unit tests in PHP that were sending flush_all and right after
that setting array of values. Right after that i was getting them back
in single get queries. Even that timeout on my items was 60 seconds i
was getting empty results. I have added sleep 1s between flush_all
command and set and everything went back to normal.

Im not expert in C so i just had a quick look in the code and i think
it counts time in seconds, then invalidation of rows also happend on
second. But as i said im not expert in C and i dont know memcache code
so well.

Could anyone please confirm is that a bug or my misunderstanding or
what could be other reason of this?

Is flushing in separate thread? could it be delayed till after i set
my item so its not accessible?

Any way ill appreciate some guidance on that one :- )

Thanks a million!

ps. memcache is awesome! thanks to all contributors for that tool!

Artur

Reply via email to