opensearch-project/OpenSearch

[Remote Store] Incorrect Recovery Type shown in _cat/recovery API when remote store is enabled.

オープン

#10,651 opened on 2023/10/16

 (3 件のコメント) (0 件のリアクション) (1 人の担当者)Java (1,505 件のフォーク)batch import
Storage:Remotebuggood first issuelow hanging fruit

Repository metrics

Stars
 (8,123 個のスター)
PR merge metrics
 (平均マージ 5d 9h) (30d で 266 merged PRs)

説明

Describe the bug With remote store enabled when a new replica is added to the cluster, the recovery type should be remote_store instead it gives peer as recovery type.

$ curl localhost:9200/_cat/recovery?v
index shard time type    stage source_host  source_node target_host  target_node repository snapshot files files_recovered files_percent files_total bytes bytes_recovered bytes_percent bytes_total translog_ops translog_ops_recovered translog_ops_percent
so  0   143ms empty_store done n/a      n/a     node-ip node-1   n/a    n/a   0   0        0.0%     0      0   0        0.0%     0      0      0           100.0%
so  0   4.7m peer    done node-ip node-1   node-ip node-3   n/a    n/a   1   1        100.0%    169     3776 3776      100.0%    36711602919 0      0           100.0%

To Reproduce -> Create a index with some data. -> Add new replica to the index -> Call _cat/recovery and check the output.

Expected behavior The recovery type must be remote_store not peer

Plugins Please list all plugins currently enabled.

Screenshots If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

コントリビューターガイド