Uh oh!
There was an error while loading. Please reload this page.
[fix](fe) Fix SHOW BACKENDS field order mismatch - #62207
Merged
Merged
Conversation
The output fields of SHOW BACKENDS command were not in the same order as the BackendsTableValuedFunction.SCHEMA definition, causing field values to be displayed in wrong columns. Issue: - CpuCores showed NodeRole value (mix) - Memory showed CpuCores value - NodeRole showed Memory value Fix: - Reorder fields in BackendsProcDir.getBackendInfos() to match SCHEMA: CpuCores -> Memory -> LiveSince -> RunningTasks -> NodeRole - Synchronize the same fix in MetadataGenerator.backendsMetadataResult() - Add unit test to verify field order Test: Unit test added
hello-stephen
commented
Apr 8, 2026
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
HappenLee
commented
Apr 8, 2026
ContributorAuthor
run buildall |
HappenLee
commented
Apr 8, 2026
ContributorAuthor
run buildall |
hello-stephen
commented
Apr 8, 2026
Contributor
FE UT Coverage ReportIncrement line coverage |
HappenLee
commented
Apr 8, 2026
ContributorAuthor
run buildall |
hello-stephen
commented
Apr 8, 2026
Contributor
FE UT Coverage ReportIncrement line coverage |
yiguolei
previously approved these changes
Apr 8, 2026
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
…BackendsTest Issue Number: N/A Problem Summary: After commit d21be2b which fixed SHOW BACKENDS field order to match SCHEMA definition, the NodeRole column moved from index size-5 to size-1 (last column). The test assertion still used the old wrong offset size-5 (which now points to CpuCores returning "1"), causing the test to fail with expected:<[mix]> but was:<[1]>. None - Test: Unit test fix - updated column index to match corrected field order - Behavior changed: No - Does this need documentation: No
HappenLeeforce-pushed
the
fix-backends-field-order
branch
from
April 9, 2026 03:39
5af1967 to
8f95f21CompareHappenLee
commented
Apr 9, 2026
ContributorAuthor
run buildall |
Mryange
approved these changes
Apr 9, 2026
yiguolei
approved these changes
Apr 9, 2026
Contributor
PR approved by at least one committer and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
github-actionsBot
pushed a commit
that referenced
this pull request
Apr 9, 2026
## Summary Fix SHOW BACKENDS command output field order mismatch with BackendsTableValuedFunction.SCHEMA definition. ## Problem The output fields of SHOW BACKENDS command were not in the same order as the BackendsTableValuedFunction.SCHEMA definition, causing field values to be displayed in wrong columns: - CpuCores showed NodeRole value (mix) - Memory showed CpuCores value - NodeRole showed Memory value ## Solution 1. Reorder fields in BackendsProcDir.getBackendInfos() to match SCHEMA: - CpuCores -> Memory -> LiveSince -> RunningTasks -> NodeRole 2. Synchronize the same fix in MetadataGenerator.backendsMetadataResult() 3. Add unit test to verify field order ## Test - Unit test added in BackendsProcDirTest.testBackendInfoFieldOrder()
github-actionsBot
pushed a commit
that referenced
this pull request
Apr 9, 2026
## Summary Fix SHOW BACKENDS command output field order mismatch with BackendsTableValuedFunction.SCHEMA definition. ## Problem The output fields of SHOW BACKENDS command were not in the same order as the BackendsTableValuedFunction.SCHEMA definition, causing field values to be displayed in wrong columns: - CpuCores showed NodeRole value (mix) - Memory showed CpuCores value - NodeRole showed Memory value ## Solution 1. Reorder fields in BackendsProcDir.getBackendInfos() to match SCHEMA: - CpuCores -> Memory -> LiveSince -> RunningTasks -> NodeRole 2. Synchronize the same fix in MetadataGenerator.backendsMetadataResult() 3. Add unit test to verify field order ## Test - Unit test added in BackendsProcDirTest.testBackendInfoFieldOrder()
yiguolei pushed a commit
that referenced
this pull request
Apr 10, 2026
yiguolei pushed a commit
that referenced
this pull request
May 7, 2026
Closed
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 freeto 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
Fix SHOW BACKENDS command output field order mismatch with BackendsTableValuedFunction.SCHEMA definition.
Problem
The output fields of SHOW BACKENDS command were not in the same order as the BackendsTableValuedFunction.SCHEMA definition, causing field values to be displayed in wrong columns:
Solution
Test