Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14829

Make stop-server.bat wait for Cassandra to terminate

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.11.4, 4.0
    • Component/s: Packaging
    • Labels:
    • Environment:

      Windows 10

      Description

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

      Does this sound reasonable?

      Here is the pull request: https://github.com/apache/cassandra/pull/287

        Attachments

          Activity

            People

            • Assignee:
              georg Georg Dietrich
              Reporter:
              georg Georg Dietrich
              Authors:
              Georg Dietrich
              Reviewers:
              Dinesh Joshi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: