Skip to content

fix: remove unnecessary IsAvailable gate from index_stats - #86

Closed
SteveLauC wants to merge 1 commit into
mainfrom
fixcollector
Closed

fix: remove unnecessary IsAvailable gate from index_stats#86
SteveLauC wants to merge 1 commit into
mainfrom
fixcollector

Conversation

@SteveLauC

@SteveLauC SteveLauC commented Jun 30, 2026

Copy link
Copy Markdown
Member

CatShards and CatIndices are read-only cat APIs that work regardless of
cluster health status. There is no reason to gate them behind
IsAvailable, which caused shard_info and index_info to be null in the
inspect flow where the flag is never set.

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@SteveLauC SteveLauC changed the title fix: keep shard grouping in index_stats when cluster availability isunset fix: remove unnecessary IsAvailable gate from index_stats Jul 1, 2026
CatShards and CatIndices are read-only cat APIs that work regardless of
cluster health status. There is no reason to gate them behind
IsAvailable, which caused shard_info and index_info to be null in the
inspect flow where the flag is never set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant