allegro / embedded-elasticsearch

Tool that ease up creation of integration tests with Elasticsearch
Apache License 2.0
269 stars 81 forks source link

Problem with OSS version of ES #93

Open giampaolotrapasso opened 5 years ago

giampaolotrapasso commented 5 years ago

I'm downloading elasticsearch-oss-6.5.4.zip from maven under org/elasticsearch/distribution/zip/elasticsearch-oss. During startup 2 folders are created: elasticsearch-6.5.4 and elasticsearch-oss-6.5.4. The first contains the bins while the second just the configuration.

This depends because by two causes.

  1. The zip file does not contains the oss suffix so it's extracted to elasticsearch-6.5.4
  2. Startup leverages both on getInstallationDirectory and getExecutableFile that make different assumptions on the version label.

The final result is that startup looks for init script on the wrong folder (elasticsearch-oss-6.5.4) instead of elasticsearch-6.5.4.