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.

On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:

> 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.
>
>

-- 

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

Reply via email to