Skip to content

Draft: Fix OpenSearch Distribution check issue

Changzheng Liu requested to merge 363714-opensearch-dist-check-fix into master

What does this MR do and why?

This change is to fix the OpenSearch distribution check issue.

Screenshots or screen recordings

OpenSearch responds to the info request with the following format

{"name"=>"1cada243ac29",
 "cluster_name"=>"docker-cluster",
 "cluster_uuid"=>"FUyiOeh-TB-n1zAYtr299Q",
 "version"=>
  {"distribution"=>"opensearch",
   "number"=>"1.2.4",
   "build_type"=>"tar",
   "build_hash"=>"e505b10357c03ae8d26d675172402f2f2144ef0f",
   "build_date"=>"2022-01-14T03:38:06.881862Z",
   "build_snapshot"=>false,
   "lucene_version"=>"8.10.1",
   "minimum_wire_compatibility_version"=>"6.8.0",
   "minimum_index_compatibility_version"=>"6.0.0-beta1"},
 "tagline"=>"The OpenSearch Project: https://opensearch.org/"}

Elasticsearch 8.1 responds to the info request with the following format

{"name"=>"81a5238b0ace",
 "cluster_name"=>"docker-cluster",
 "cluster_uuid"=>"ASdPYRtjS6yr-a8i9qE08A",
 "version"=>
  {"number"=>"8.1.0",
   "build_flavor"=>"default",
   "build_type"=>"docker",
   "build_hash"=>"3700f7679f7d95e36da0b43762189bab189bc53a",
   "build_date"=>"2022-03-03T14:20:00.690422633Z",
   "build_snapshot"=>false,
   "lucene_version"=>"9.0.0",
   "minimum_wire_compatibility_version"=>"7.17.0",
   "minimum_index_compatibility_version"=>"7.0.0"},
 "tagline"=>"You Know, for Search"}

Elasticsearch 7.16 responds to the info request with the following format

{"name"=>"Changzhengs-MacBook-Pro.local",
 "cluster_name"=>"elasticsearch",
 "cluster_uuid"=>"5RooJkemQuK695sn11fk_Q",
 "version"=>
  {"number"=>"7.16.1",
   "build_flavor"=>"default",
   "build_type"=>"tar",
   "build_hash"=>"5b38441b16b1ebb16a27c107a4c3865776e20c53",
   "build_date"=>"2021-12-11T00:29:38.865893768Z",
   "build_snapshot"=>false,
   "lucene_version"=>"8.10.1",
   "minimum_wire_compatibility_version"=>"6.8.0",
   "minimum_index_compatibility_version"=>"6.0.0-beta1"},
 "tagline"=>"You Know, for Search"}

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363714 (closed)

Merge request reports

Loading