cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georg Dietrich (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-14829) Make stop-server.bat wait for Cassandra to terminate
Date Mon, 19 Nov 2018 22:17:00 GMT


Georg Dietrich commented on CASSANDRA-14829:

Hi [~djoshi3], thanks for looking this over. Maybe I could write a dtest for this, any maybe
 * The readme of [cassandra-dtest|] explains how
to get the dependencies on Linux and Mac, but the test will be needed for Windows, so I'll
first have to get dtests running there...
 * In cassandra-dtest it says "test functionality that requires multiple Cassandra instances".
For my addition to stop-server.bat, a single Cassandra instance would be enough. Is dtest
the right place to write that test?
 * When the above two things are settled, I would probably go along the lines of [,]
where token-generator.bat is called on Windows... - so if I get the tests to run on Windows,
and dtest is the right place, yes, probably I can manage :)

I'll give it a try. Do you have helpful advice (e.g. pointers to resorces / how to pages)?

> Make stop-server.bat wait for Cassandra to terminate
> ----------------------------------------------------
>                 Key: CASSANDRA-14829
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Packaging
>         Environment: Windows 10
>            Reporter: Georg Dietrich
>            Assignee: Georg Dietrich
>            Priority: Minor
>              Labels: easyfix, windows
>             Fix For: 3.11.x, 4.x, 4.0.x
> While administering a single node Cassandra on Windows, I noticed that the stop-server.bat
script returns before the cassandra process has actually terminated. For use cases like creating
a script "shut down & create backup of data directory without having to worry about open
files, then restart", it would be good to make stop-server.bat wait for Cassandra to terminate.
> All that is needed for that is to change in apache-cassandra-3.11.3\bin\stop-server.bat
"start /B powershell /file ..." to "start /WAIT /B powershell /file ..." (additional /WAIT
> Does this sound reasonable?
> Here is the pull request:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message