fix(cluster): honor read-only active task fallbacks - #211
Merged
Conversation
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.
Summary
doris_cluster.list_active_taskscapability detection with the runtime's existing read-only fallback chainSHOW PROC \"/current_queries\"is deniedtask_typesschema and description to the query and compaction task types actually implementedRoot cause
The capability detector checked only
SHOW PROC \"/current_queries\", while the execution runtime already fell back toinformation_schema.active_queriesandSHOW FULL PROCESSLIST. Restricted Doris accounts could therefore execute a safe fallback but never discover or call the child because availability was rejected first.User impact
Read-only enterprise identities can now use active-query inspection without receiving broader administrative privileges. Load and schema-change status remain in the pipeline domain instead of being overstated by the cluster task contract.
Validation
uv lock --checkuv run --frozen python generate_tool_catalog.py --checkuv run --frozen ruff check .uv run --frozen mypy doris_mcp_serveruv run --frozen bandit -q -c pyproject.toml -r doris_mcp_server doris_mcp_client generate_requirements.py generate_tool_catalog.pyuv run --frozen pytest -q -W error(1827 passed, 85 skipped, coverage67.98%)The real Doris 4.0.5 restricted-reader case that exposed this mismatch will be repeated against the exact committed candidate before downstream acceptance.