Uh oh!
There was an error while loading. Please reload this page.
[fix](fe) Allow show tablet without selected database - #63280
Conversation
hello-stephen
commented
May 15, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
englefly
commented
May 15, 2026
run buildall |
hello-stephen
commented
May 15, 2026
TPC-H: Total hot run time: 30936 ms |
hello-stephen
commented
May 15, 2026
TPC-DS: Total hot run time: 169307 ms |
hello-stephen
commented
May 15, 2026
FE Regression Coverage ReportIncrement line coverage |
englefly
commented
May 18, 2026
run p0 |
englefly
commented
May 18, 2026
run cloud_p0 |
hello-stephen
commented
May 18, 2026
FE Regression Coverage ReportIncrement line coverage |
hello-stephen
commented
May 18, 2026
FE Regression Coverage ReportIncrement line coverage |
Issue Number: None Related PR: None Problem Summary: SHOW TABLET <tablet_id> looked up tablet metadata by id but still required a selected session database during validation. This caused No database selected when the mysql client had not executed USE <db>, even though the command can resolve the owning database from TabletMeta. None - Test: Regression test / Unit Test - tools/fast-compile-fe.sh fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowTabletIdCommand.java - tools/fast-compile-fe.sh --test fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowTabletIdCommandTest.java - ./run-regression-test.sh --run -d show_p0 -s test_show_tablet - cd fe && mvn checkstyle:check -pl fe-core -Dcheckstyle.includes='**/ShowTabletIdCommand.java,**/ShowTabletIdCommandTest.java' - Manual test: mysql -h :: -u root -P 29031 -e 'show tablet 1778657405980;' - Behavior changed: Yes. SHOW TABLET <tablet_id> no longer requires a selected database.
englefly
commented
May 19, 2026
run buildall |
hello-stephen
commented
May 19, 2026
TPC-H: Total hot run time: 30891 ms |
hello-stephen
commented
May 19, 2026
TPC-DS: Total hot run time: 169945 ms |
hello-stephen
commented
May 19, 2026
FE UT Coverage ReportIncrement line coverage `` 🎉 |
hello-stephen
commented
May 19, 2026
FE Regression Coverage ReportIncrement line coverage |
morrySnow
commented
May 21, 2026
/review |
There was a problem hiding this comment.
Review result: no blocking issues found.
Critical checkpoint conclusions:
- Goal/test coverage: The PR makes SHOW TABLET <tablet_id> work without a selected session database. The implementation matches that goal, and both unit and regression coverage were added for the no-database-selected case.
- Scope/minimality: The code change is small and focused, removing only the selected-database dependency that was not used by tablet-id resolution.
- Concurrency/lifecycle: No new concurrency, locking, static initialization, or lifecycle behavior is introduced.
- Configuration/compatibility: No new config, storage format, protocol, or incompatible behavior beyond the intended user-visible relaxation.
- Parallel paths: Similar tablet-id based admin commands do not require a selected database, so this aligns behavior rather than diverging.
- Error handling/privilege: ADMIN privilege checking remains in place; no new unchecked Status/exception path is introduced.
- FE locking/metadata: The PR does not add metadata locking or external IO under locks.
- Performance/observability: No hot-path or observability impact from the validation removal.
User focus points: no additional user-provided review focus was present.
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
### What problem does this PR solve? Problem Summary: SHOW TABLET <tablet_id> looked up tablet metadata by id but still required a selected session database during validation. This caused No database selected when the mysql client had not executed USE <db>, even though the command can resolve the owning database from TabletMeta. Issue Number: close #xxx Related PR: #48815
### What problem does this PR solve? Problem Summary: SHOW TABLET <tablet_id> looked up tablet metadata by id but still required a selected session database during validation. This caused No database selected when the mysql client had not executed USE <db>, even though the command can resolve the owning database from TabletMeta. Issue Number: close #xxx Related PR: #48815
### What problem does this PR solve? Problem Summary: SHOW TABLET <tablet_id> looked up tablet metadata by id but still required a selected session database during validation. This caused No database selected when the mysql client had not executed USE <db>, even though the command can resolve the owning database from TabletMeta. Issue Number: close #xxx Related PR: apache#48815
What problem does this PR solve?
Problem Summary: SHOW TABLET <tablet_id> looked up tablet metadata by id but still required a selected session database during validation. This caused No database selected when the mysql client had not executed USE , even though the command can resolve the owning database from TabletMeta.
Issue Number: close #xxx
Related PR: #48815
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)