Graceful Shutdown Missing for makerd
and DNS
Servers on Termination & Errors
#322
Labels
Milestone
makerd
and DNS
Servers on Termination & Errors
#322
Description:
Currently our
DNS
&makerd
server works well -> they start with similar fashion as we expect and successfully completes the shutdown procedure whenever they are set to shutdown.But there are few edge cases left to be handled regarding successfull shutting down of these servers:
Signal Termination :
makerd
server is running well -> and someone just kill thatmakerd
process i.eSIGTERM
or justctrl+c
i.eSIGINT
-> so this process will abruptly terminates -> thus it can't undergo shutdown procedure and thus leads to in-memory data.Error occured while running these servers:
coinswap/src/maker/server.rs
Lines 402 to 501 in 6e5ce00
start_maker_server
api to start the makerd process and this will keep running in background untill we set flag the server to shutdown(In normal cases).Solution:
Drop
trait forMaker
&DirectoryServer
structs -> this will ensures that whenever the last instance of these structs goes out of scope -> Their corresponding server must shutdown successfully.The text was updated successfully, but these errors were encountered: