./bin/elasticsearch -version kills any running elasticsearch

From elasticsearch-6.4.3, if we run ./bin/elasticsearch -version any running elasticsearch instance seems to be killed with -9. This does did not happen before this version. We are performing a version check before update to prevent older or the same version to be installed by mistake.

Earlier, this worked and the flag was --version instead BUT we get this problem even with --version

/Johan

@JohanRask, you can use the below command to check the version of elasticsearch:

curl 'http://Your_Elasticserach_server_IP:9200'

Thanks.

True, we actually use that as well after install...
But it still does not make any sense to kill a running instance.

@JohanRask, i didn't use Elasticsearch6.4.2 or higher version. So i need to install it to replicate the issue.

Thanks.

I can't reproduce this:

$ curl -u elastic:${ELASTIC_PASSWORD} 'http://localhost:9200?pretty' --silent | jq .version.number
"6.4.3"
$ ./bin/elasticsearch -version
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Version: 6.4.3, Build: default/tar/fe40335/2018-10-30T23:17:19.084789Z, JVM: 11
$ curl -u elastic:${ELASTIC_PASSWORD} 'http://localhost:9200?pretty' --silent | jq .version.number
"6.4.3"

Can you provide more details about your local setup and the precise symptoms you're seeing (log messages, etc).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.