Skip to content

Conversation

@jasontedor
Copy link
Member

When invoking the elasticsearch-env.bat batch script on Windows, if the script exits due to an error (e.g., Java can not be found, or the wrong version of Java is found), then the script exits. Sadly, on Windows, this does not also terminate the caller, instead returning control. This means we have to explicitly exit so that is what we do in this commit.

When invoking the elasticsearch-env.bat batch script on Windows, if the
script exits due to an error (e.g., Java can not be found, or the wrong
version of Java is found), then the script exits. Sadly, on Windows,
this does not also terminate the caller, instead returning control. This
means we have to explicitly exit so that is what we do in this commit.
@jasontedor jasontedor added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >bug review v6.0.0 v6.1.0 v7.0.0 v6.0.0-beta1 and removed v6.0.0 v6.0.0-beta1 labels Jul 30, 2017
* master:
  Version option should display if snapshot
  Ignore JVM options before checking Java version
  Remove dead code for checking exclusive options
  Fix typo in Elasticsearch help
  Add version command to issue template
  Fix typo in Windows elasticsearch-env script
  Remove running outside of distribution check
@jasontedor jasontedor merged commit b7fe8b4 into elastic:master Jul 31, 2017
jasontedor added a commit that referenced this pull request Jul 31, 2017
When invoking the elasticsearch-env.bat batch script on Windows, if the
script exits due to an error (e.g., Java can not be found, or the wrong
version of Java is found), then the script exits. Sadly, on Windows,
this does not also terminate the caller, instead returning control. This
means we have to explicitly exit so that is what we do in this commit.

Relates #25959
jasontedor added a commit that referenced this pull request Jul 31, 2017
When invoking the elasticsearch-env.bat batch script on Windows, if the
script exits due to an error (e.g., Java can not be found, or the wrong
version of Java is found), then the script exits. Sadly, on Windows,
this does not also terminate the caller, instead returning control. This
means we have to explicitly exit so that is what we do in this commit.

Relates #25959
@jasontedor
Copy link
Member Author

Thanks @tlrx.

@jasontedor jasontedor deleted the exit-promptly branch July 31, 2017 11:44
@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v6.0.0-beta1 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants