docs(collection): explain null cache/handler stats on Solr 10 in tool description - #163
Merged
epugh merged 1 commit intoAug 18, 2026
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
On Solr 10,
/admin/mbeanswas removed;get-collection-statsalready degrades gracefully and returnsnullforcacheStats/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
nulla client must interpret is a documentation gap in the place clients actually look: the tool description.Changes
get-collection-statsdescription 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/fetchHandlerMetricscatch clauses, and this avoids conflicting with it. A follow-up could migrate to/admin/metricsto restore the stats on Solr 10.Description-only change — no behavior change.
./gradlew buildpasses (unit + Testcontainers integration tests).🤖 Generated with Claude Code