Closed ashie closed 4 years ago
Test failed. Could you check it?
In addition, this PR also fixes default behavior of
stop
andrestart
methods ofMultiSpawnServer
. They do nothing by default because these methods expect thatauto_tick
is enabled althoughMultiSpawnServer
disables it by default. Whenauto_tick
is disabled, users of this class will expect that it sends a signal (or command) immediately.
I misunderstood it. tick
method of ProccessManager
is called in run
method of MultiWorkerServer
.
Although tick
isn't called on Windows, it's caused by another reason. It's because hearbeat feature isn't implemented on Windows: https://github.com/treasure-data/serverengine/blob/master/lib/serverengine/process_manager.rb#L250
I'll remove this commit so that failed tests will be fixed. To implement graceful stop for Windows instead, I'll add another fix.
I'll remove this commit so that failed tests will be fixed. To implement graceful stop for Windows instead, I'll add another fix.
I've pushed the fix.
Thanks!
Thanks! BTW there are few tests for MultiSpawServer
, I'm considering add more tests.
This commit intents to fix the following issues of Fluentd:
Current implementation of
MultiSpawnServer
has following issues. This PR fixes them:~~In addition, this PR also fixes default behavior of
stop
andrestart
methods ofMultiSpawnServer
. They do nothing by default because these methods expect thatauto_tick
is enabled althoughMultiSpawnServer
disables it by default. Whenauto_tick
is disabled, users of this class will expect that it sends a signal (or command) immediately. (If you don't want to change this behavior, I'll remove this commit.)~~