Cannot test Warm Restart on Windows

74 views
Skip to first unread message

Damian Chapman

unread,
Dec 7, 2021, 6:35:00 AM12/7/21
to memcached
Hi all,

I am trying to test Memcached warm restart on Windows.
I am using v1.6.12.

I used ImDisk to create a RAM disk on Windows on the D: drive (1G)

I start Memcached with the -e option

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
[restart] no metadata save file, starting with a clean cache

I check the file system and I can see that the backup file is created:

D:\>dir
 Volume in drive D has no label.
 Volume Serial Number is 5881-2000

 Directory of D:\

07/12/2021  11:17        67,108,864 backup
               1 File(s)     67,108,864 bytes
               0 Dir(s)     988,749,824 bytes free
   
I start a telnet session and set and get mykey

telnet localhost 11211

set mykey 0 300 4
data
STORED
get mykey
VALUE mykey 0 4
END    

I stop Memcached using Ctrl-C and restart

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
[restart] no metadata save file, starting with a clean cache
Signal handled: Interrupt.

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
[restart] no metadata save file, starting with a clean cache

I think the issue may be here as I would not expect to restart with a clean cache. I see no
metadata file on the D: drive.

When I run the telnet session again and type the get mykey command it does not find the data value.

Any help would be really appreciated.
Thank you in advance.

Kind regards,
Damian.

Damian Chapman

unread,
Dec 8, 2021, 11:17:08 AM12/8/21
to memcached
It looks like Crtl-C is incorrect here to stop Memcached gracefully.

To stop gracefully it needs 

kill -SIGUSR1 <pid of memcached> where <pid of Memcached> is the process id of Memcached

but SIGUSR1 is a Unix/Linux signal for inter process communication and it is not used in Windows.

This is why my testing does not work in Windows.

dormando

unread,
Dec 8, 2021, 2:14:11 PM12/8/21
to memc...@googlegroups.com
Where did you get a windows build of 1.6.12?

We don't officially support windows, and I hadn't heard of anyone even making recent builds of a windows fork. You're best off asking whomever's doing that build.

On Dec 8, 2021, at 8:17 AM, Damian Chapman <cosmos...@gmail.com> wrote:

It looks like Crtl-C is incorrect here to stop Memcached gracefully.
--

---
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com.

Damian Chapman

unread,
Dec 8, 2021, 4:30:05 PM12/8/21
to memcached
Hi Dormando,

Thanks for responding to me.

I got the Windows build from https://github.com/nono303/memcached

Kind regards,
Damian.

dormando

unread,
Dec 17, 2021, 2:57:30 PM12/17/21
to memcached
Hey,

Sorry for the late response; I have no idea who this person is or how it's
being built and there doesn't seem like a code patch?

So you should file an issue with them if you haven't already.
> https://groups.google.com/d/msgid/memcached/59845faf-dc91-4944-afc0-7643356eb68an%40googlegroups.com.
>
>

Damian Chapman

unread,
Dec 18, 2021, 5:28:45 AM12/18/21
to memc...@googlegroups.com
No worries. Thanks Dormando.
> To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/c4f89c86-7720-38a0-3f8b-5822b81d77e7%40rydia.net.
Reply all
Reply to author
Forward
0 new messages