legacy-knowledge-base
公開されました Jun. 30, 2025

Upgrading from Elasticsearch 7.9.0 to 7.17.0, index status is YELLOW

投稿者

Jordi Rodó

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Upgrading from Elasticsearch 7.9.0 to 7.17.0, index status is YELLOW
  • The UNASSIGNED shard can be seen with the following command
    $ curl search:9200/_cat/shards
    .ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001 0 p STARTED 10.0.0.88 search-0
    .ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001 0 r UNASSIGNED

Environment

  • Liferay PaaS (DXP 7.3)

solution

  • One replica shard is not allocated (UNASSIGNED) for the index for Elasticsearch, so the node itself has YELLOW status
  • Delete the concerned replica shard with the following command
    curl -XPUT search:9200/.ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001/_settings -H 'Content-Type: application/json' -d'{ "number_of_replicas":0 }'

Additional Information

  • The following commands are useful for troubleshooting Elasticsearch
    curl http://search:9200/
    curl http://search:9200/_cat/nodes
    curl http://search:9200/_cat/shards
    curl http://search:9200/_cat/allocation
    curl http://search:9200/_cat/indices
    curl http://search:9200/_cluster/settings
    curl http://search:9200/_cluster/health
    curl http://search:9200/_cluster/stats
    curl http://search:9200/_cluster/allocation/explain
    curl http://search:9200/liferay-*/_settings

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base