Skip to content

docs(collection): explain null cache/handler stats on Solr 10 in tool description - #163

Merged
epugh merged 1 commit into
apache:mainfrom
adityamparikh:docs/collection-stats-solr10-note
Aug 18, 2026
Merged

docs(collection): explain null cache/handler stats on Solr 10 in tool description#163
epugh merged 1 commit into
apache:mainfrom
adityamparikh:docs/collection-stats-solr10-note

Conversation

@adityamparikh

Copy link
Copy Markdown
Contributor

Motivation

On Solr 10, /admin/mbeans was removed; get-collection-stats already degrades gracefully and returns null for cacheStats/handlerStats. But nothing on the tool surface tells the client this is expected — an LLM client sees unexplained nulls and may retry, misreport a broken server, or go hunting for a workaround.

A bare null a client must interpret is a documentation gap in the place clients actually look: the tool description.

Changes

  • get-collection-stats description now states that on Solr 10+ the two stats are always null because the endpoint was removed from Solr, and that this is expected.

Deliberately scoped to the description only: PR #111 is already modifying the fetchCacheMetrics/fetchHandlerMetrics catch clauses, and this avoids conflicting with it. A follow-up could migrate to /admin/metrics to restore the stats on Solr 10.

Description-only change — no behavior change. ./gradlew build passes (unit + Testcontainers integration tests).

🤖 Generated with Claude Code

On Solr 10 the /admin/mbeans endpoint was removed, so get-collection-stats
degrades gracefully and returns null cacheStats/handlerStats. Nothing on
the tool surface said so, leaving MCP clients to treat the nulls as a
failure and retry or misreport. State the behavior in the tool
description, which every client reads.

Kept to the description only to avoid colliding with PR apache#111, which
touches the fetchCacheMetrics/fetchHandlerMetrics implementations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
@epugh
epugh merged commit c011b0e into apache:main Aug 18, 2026
4 checks passed
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.

2 participants