Skip to content

YARN-11981: Fix 0% capacity for auto created queue - #8674

Open
Hean-Chhinling wants to merge 9 commits into
apache:trunkfrom
Hean-Chhinling:trunk_YARN-11981
Open

YARN-11981: Fix 0% capacity for auto created queue#8674
Hean-Chhinling wants to merge 9 commits into
apache:trunkfrom
Hean-Chhinling:trunk_YARN-11981

Conversation

@Hean-Chhinling

@Hean-Chhinling Hean-Chhinling commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Contains content generated by Cursor.

Description of PR

Utilise existing queueInfo to get the configured capacity for auto created queue once it is turned on.

Formatted the same way as static queues (e.g. 3w)

Staged capacity edits from "Edit Capacity" still take precedence before apply.

How was this patch tested?

Tested locally and works as expected. Please refer to the screenshot below:
Screenshot 2026-08-19 at 18 36 48

For code changes:

  • Does the title of this PR start with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
  • Object storage: Have the integration tests been executed and the endpoint
    declared according to the connector-specific documentation? Note: Automated CI
    testing doesn't cover all cases so manual testing with cloud storage is still
    required.
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

AI Tooling

If an AI tool was used:

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 51s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 48m 21s trunk passed
+1 💚 shadedclient 83m 9s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 28s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 33m 6s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 48s The patch does not generate ASF License warnings.
121m 27s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/1/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 30ed9ccb92c6 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 9dc9ba7
Max. process+thread count 589 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/1/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@K0K0V0K

K0K0V0K commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Thanks @Hean-Chhinling for fixing this bug!

If i see correctly you checked in the

The PR includes the phrase "Contains content generated by "
where is the name of the AI tool used.

field on the PR, but i dont see this in github. Do i miss something?

@K0K0V0K K0K0V0K left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Hean-Chhinling !

LGTM!

@Hean-Chhinling

Copy link
Copy Markdown
Contributor Author

Thanks @Hean-Chhinling for fixing this bug!

If i see correctly you checked in the

The PR includes the phrase "Contains content generated by "
where is the name of the AI tool used.

field on the PR, but i dont see this in github. Do i miss something?

Thanks you for the review @K0K0V0K.
I missed that statement now I added it at the top of my PR.

@susheelgupta7 susheelgupta7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Hean-Chhinling

Copy link
Copy Markdown
Contributor Author

Hello @brumi1024 and @slfan1989,
May I ask for you guys review here?

@pan3793

pan3793 commented Aug 19, 2026

Copy link
Copy Markdown
Member

Scanned with an LLM and posted the selected feedback below

DISCLAIMER: I reviewed each finding before posting, they look reasonable to me literally, but I'm not an expert in the frontend area, please re-evaluate each item carefully (you can reject the item with reasons if you think it's wrong).

Findings

  1. Auto-created parents show the wrong template. getAutoCreatedQueueTemplatePath (templateUtils.ts:78) always picks FLEXIBLE_LEAF for every dynamicFlexible queue. But flexible auto-creation makes parents dynamic too -
    CapacitySchedulerInfoHelper documents "both a parent and a leaf can be either static or dynamicFlexible", and parent capacity comes from auto-queue-creation-v2.parent-template (AutoCreatedQueueTemplate.parentOnlyProperties). So for an app
    targeting root.default.team.user, the auto-created root.default.team card shows the leaf weight (3w) instead of the parent weight. Fix: branch on queueInfo.queueType and use FLEXIBLE_PARENT for parents.

  2. Template overrides the queue's own staged value. resolveAutoCreatedQueueCapacityConfigs (templateUtils.ts:122-129) unconditionally replaces the queue value with the template value. The card's "Edit Capacity" is enabled for auto-created
    queues (QueueCardContextMenu.tsx:126) and staging a change writes capacity on the queue path (capacityEditorSlice.ts:431); getQueuePropertyValue is staged-aware (queueDataSlice.ts:37-51). After editing 3w -> 5w, the card still shows 3w. Pre-
    trunk behavior showed the staged value, so this is a regression of the change. Fix: use the template only when the queue's own value is empty/unset, and never when the own value is staged.

  3. Nested/wildcard templates are missed. The helper reconstructs .auto-queue-creation-v2.leaf-template and looks it up in the config map. For depth >= 2 auto-created queues, the effective leaf-template lives at root.default.*.auto-
    queue-creation-v2.leaf-template (wildcard inheritance, AutoCreatedQueueTemplate.setTemplateConfigEntries), so the lookup returns empty and the 0% display persists. The RM already resolves per-queue template properties and ships them in the
    scheduler REST as autoQueueLeafTemplateProperties / autoQueueParentTemplateProperties (present in the UI's CapacitySchedulerInfo type, types/scheduler.ts:90-92, though not yet on QueueInfo). Reading those fields per queue would fix findings 1
    and 3 at once and drop the path-guessing entirely.

  4. Nit: formatting. templateUtils.ts:87 is 105 chars, over the repo printWidth: 100; prettier --check (format:check) would flag it. The two-blank-line import block also reads oddly.

  5. Nit: test coverage. Tests are good and idiomatic, but they don't cover the parent-template case, staged-edit precedence, or nested/wildcard templates.

Comment on lines +75 to +76
* - flexible v2 (`auto-queue-creation-v2.enabled`) → leaf-template
* - legacy (`auto-create-child-queue.enabled`) → leaf-queue-template

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @pan3793's comment. This doesn't seem to handle parent-template, template and wildcard scenarios. See the docs about flexible AQC:

* Configuring **flexible** `Auto-Created Leaf Queues` with `CapacityScheduler`

@Hean-Chhinling Hean-Chhinling Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review @brumi1024!
I purposely not handle the others because in this PR, it is for fixing the bug that the auto leaf-queue capacity is not showing correctly. Therefore, this is to check only for the leaf templates.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that we cannot solely rely on the leaf-template. AQCv2's template handling logic takes multiple values into account (template, wildcards, leaf-template), and this change assumes that nothing else matters. See in my comment below: #8674 (comment)

@brumi1024

brumi1024 commented Aug 19, 2026

Copy link
Copy Markdown
Member

Thanks for the fix @Hean-Chhinling, the bug report is valid - the card really does show 0% for a queue that the RM is giving 3w. But I'd like to suggest a different approach, because the current one will keep missing cases.

The root cause is where the card gets its number. transformToCardData reads capacity through getQueuePropertyValue, which looks into the scheduler-conf store - that is the raw configuration a cluster admin wrote. An auto-created queue never has its own root.default.user1.capacity key there; the RM resolves the template internally (AutoCreatedQueueTemplate.setTemplateEntriesForChild) and applies it in memory. So any lookup on the config side will come up empty, and the UI falls back to '0'.

This PR works around that by rebuilding the template path in the UI (.auto-queue-creation-v2.leaf-template). The problem is that the RM's template resolution is more involved than that one key: there are template, leaf-template and parent-template with a precedence order, wildcard templates like root.default.*.auto-queue-creation-v2.leaf-template.capacity for deeper queues, dynamic parent queues that use parent-template, and a default of 1w when no template is configured at all (AbstractCSQueue.setupConfigurableCapacities). Reimplementing all of that in TypeScript means a second copy of the logic that will drift from the RM, the main thing I wanted to avoid in the config UI.

The good news is we don't have to: the /ws/v1/cluster/scheduler response already contains the RM-computed answer for every queue, and the UI already parses it into QueueInfo - look at weight, normalizedWeight and queueCapacityVectorInfo.configuredCapacityVector in types/queue.ts. They're just not used by the card yet.

So the suggestion: in transformToCardData, when creationMethod is dynamicFlexible or dynamicLegacy, take capacity / max capacity from those REST fields, and only let a staged config value (isStaged === true) override it, so edits still show before apply. That removes the need for the new template-path helper entirely, and it fixes wildcard, parent-template and the no-template default in one go.

@Hean-Chhinling Hean-Chhinling changed the title YARN-11981: Utilise leaf-template capacity for the auto created queue YARN-11981: Fix 0% capacity for auto created queue Aug 19, 2026
@Hean-Chhinling

Copy link
Copy Markdown
Contributor Author

Thank you so much @pan3793 and @brumi1024 for the review!
I have turned to utilise the existing queueInfo so that way we will not duplicate the parsing schedulerConfigs.
Please feel free to review again when you get time

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 26s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 29m 17s trunk passed
+1 💚 shadedclient 49m 27s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 46s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 18m 50s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 25s The patch does not generate ASF License warnings.
71m 20s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/2/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux f712d5d28e8a 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3596555
Max. process+thread count 613 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/2/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 29m 0s trunk passed
+1 💚 shadedclient 48m 14s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 52s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 15m 18s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 31s The patch does not generate ASF License warnings.
66m 49s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/4/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux c062e48da967 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / f5d6319
Max. process+thread count 636 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/4/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 29m 30s trunk passed
+1 💚 shadedclient 48m 50s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 51s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 18m 33s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 30s The patch does not generate ASF License warnings.
70m 34s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/3/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 3c904bb3e6a8 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / f5d6319
Max. process+thread count 642 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/3/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 18m 18s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 41m 13s trunk passed
+1 💚 shadedclient 70m 10s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 28s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 27m 35s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 46s The patch does not generate ASF License warnings.
120m 16s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/5/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 221de03ca1cd 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / e00cc5b
Max. process+thread count 609 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/5/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 29m 4s trunk passed
+1 💚 shadedclient 45m 32s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 45m 50s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 48s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 15m 47s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ asflicense 0m 27s /results-asflicense.txt The patch generated 1 ASF License warnings.
64m 10s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/7/artifact/out/Dockerfile
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 3c90841f7753 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3323797
Max. process+thread count 726 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/7/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 22s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 29m 21s trunk passed
+1 💚 shadedclient 45m 57s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 46m 16s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 49s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 15m 53s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ asflicense 0m 27s /results-asflicense.txt The patch generated 1 ASF License warnings.
64m 42s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/6/artifact/out/Dockerfile
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux d5ebbe921c4d 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3323797
Max. process+thread count 617 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/6/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

configuredMinResource &&
(configuredMinResource.memory > 0 || configuredMinResource.vCores > 0)
) {
capacityConfig = `[memory-mb=${configuredMinResource.memory},vcores=${configuredMinResource.vCores}]`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scheduler REST response already provides queueCapacityVectorInfo.configuredCapacityVector. Reconstructing the value from weight, configuredMinResource, and the computed capacity is lossy. For example, a valid mixed vector such as [memory-mb=16384,vcores=100%] has weight = -1 and may have configuredMinResource = 0/0, so this code displays the computed scalar capacity instead. It also drops custom resources (like GPU/FPGA/etc). Could we type and use configuredCapacityVector directly?

The general idea is the less custom logic on the UI the better, we should rely on the RM as much as possible, so that if something changes we don't need to constantly update the UI logic as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for actively reviewing the PR @brumi1024!
I did not use configuredCapacityVector intentionally because when I checked the /scheduler endpoint it shows as the following despite I configured the auto queue created capacity to (2048,2):

<queueCapacityVectorInfo>
   <configuredCapacityVector>[memory-mb=0.0%,vcores=0.0%]</configuredCapacityVector>
</queueCapacityVectorInfo>

And at configuredMinResource it shows correctly, therefore I used it instead:

<configuredMinResource>
<memory>2048</memory>
<vCores>2</vCores>
</configuredMinResource>

Shouldn't the configuredMinResource is the right one here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the legacy queue mode? Yes. For the non-legacy one? We should show what is provided. And this logic omits any custom resources we might have:
capacityConfig = [memory-mb=${configuredMinResource.memory},vcores=${configuredMinResource.vCores}];

It was a while ago I touched the UI, but I think there should already be a logic that parses and shows the resources from a resource object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I am able to test out successfully once I triggered the queue creation in mixed mode.
Now it shows correctly in the UI:

Screenshot 2026-08-25 at 15 27 52

Except for the MaxCapacity, I am not sure how would it be possible to handle mixedMode within /scheduler endpoint. Because the maxCapacityVector is not exist anywhere there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is flexible queue mode, but legacy AQC, I was referring to the flexible AQC.

What about something like this? brumi1024@7ae0528

With this we wouldn't require parsing the config again on the UI.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the help, @brumi1024!

That is really nice approach to handle the logic at /store instead of /hooks. Also exposing the maxCapacityVector at the backend.

I have applied your patch, added a unit test then did a manual testing and all seems to be working as expected:

Screenshot 2026-08-26 at 16 42 39
<queueCapacitiesByPartition>
	<partitionName/>
	<queueCapacityVectorInfo>
		<configuredCapacityVector>[memory-mb=2048.0,vcores=2.0]</configuredCapacityVector>
		<capacityVectorEntries>
			<resourceName>memory-mb</resourceName>
			<resourceValue>2048.0</resourceValue>
		</capacityVectorEntries>
		<capacityVectorEntries>
			<resourceName>vcores</resourceName>
			<resourceValue>2.0</resourceValue>
		</capacityVectorEntries>
	</queueCapacityVectorInfo>
	<maximumQueueCapacityVectorInfo>
		<configuredCapacityVector>[memory-mb=4096.0,vcores=4.0]</configuredCapacityVector>
		<capacityVectorEntries>
			<resourceName>memory-mb</resourceName>
			<resourceValue>4096.0</resourceValue>
		</capacityVectorEntries>
		<capacityVectorEntries>
			<resourceName>vcores</resourceName>
			<resourceValue>4.0</resourceValue>
		</capacityVectorEntries>
	</maximumQueueCapacityVectorInfo>
</queueCapacitiesByPartition>

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 23s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 26m 51s trunk passed
+1 💚 shadedclient 42m 38s branch has no errors when building and testing our client artifacts.
-0 ⚠️ patch 42m 58s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 49s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 15m 5s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ asflicense 0m 31s /results-asflicense.txt The patch generated 1 ASF License warnings.
60m 43s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/8/artifact/out/Dockerfile
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 4f2282741ef9 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 3323797
Max. process+thread count 636 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/8/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 24s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 26m 12s trunk passed
+1 💚 shadedclient 41m 50s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 46s the patch passed
+1 💚 blanks 0m 1s The patch has no blanks issues.
+1 💚 shadedclient 15m 16s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ asflicense 0m 32s /results-asflicense.txt The patch generated 1 ASF License warnings.
59m 54s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/9/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets
uname Linux 586e97758fda 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 62033e2
Max. process+thread count 636 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/9/console
versions git=2.43.0 maven=3.9.15
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 25s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 13s Maven dependency ordering for branch
+1 💚 mvninstall 28m 42s trunk passed
+1 💚 compile 3m 26s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 24s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 18s trunk passed
+1 💚 mvnsite 1m 9s trunk passed
+1 💚 javadoc 1m 10s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 4s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 23s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 18m 30s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 20s Maven dependency ordering for patch
+1 💚 mvninstall 1m 20s the patch passed
+1 💚 compile 3m 8s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 8s the patch passed
+1 💚 compile 3m 23s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 23s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 16s the patch passed
+1 💚 mvnsite 1m 6s the patch passed
+1 💚 javadoc 0m 54s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 50s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 18s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui has no data from spotbugs
+1 💚 shadedclient 17m 48s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 92m 12s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt hadoop-yarn-server-resourcemanager in the patch passed.
+1 💚 unit 1m 0s hadoop-yarn-capacity-scheduler-ui in the patch passed.
-1 ❌ asflicense 0m 44s /results-asflicense.txt The patch generated 1 ASF License warnings.
191m 53s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerConfigMutation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySched
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfig
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDefaultLabel
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/10/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets compile javac javadoc mvninstall mvnsite unit spotbugs checkstyle
uname Linux 5c578824041d 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 83ccf7f
Default Java Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/10/testReport/
Max. process+thread count 970 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/10/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 21s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 1s Maven dependency ordering for branch
+1 💚 mvninstall 27m 47s trunk passed
+1 💚 compile 3m 29s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 32s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 27s trunk passed
+1 💚 mvnsite 1m 23s trunk passed
+1 💚 javadoc 1m 10s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 8s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 27s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 16m 14s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 17s Maven dependency ordering for patch
+1 💚 mvninstall 1m 19s the patch passed
+1 💚 compile 3m 15s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 15s the patch passed
+1 💚 compile 3m 27s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 27s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 21s the patch passed
+1 💚 mvnsite 1m 19s the patch passed
+1 💚 javadoc 0m 59s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 56s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 22s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui has no data from spotbugs
+1 💚 shadedclient 15m 34s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 91m 35s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt hadoop-yarn-server-resourcemanager in the patch passed.
+1 💚 unit 0m 58s hadoop-yarn-capacity-scheduler-ui in the patch passed.
-1 ❌ asflicense 0m 45s /results-asflicense.txt The patch generated 1 ASF License warnings.
187m 12s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerConfigMutation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfig
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySched
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDefaultLabel
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/12/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets compile javac javadoc mvninstall mvnsite unit spotbugs checkstyle
uname Linux 923e926959af 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 60cf053
Default Java Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/12/testReport/
Max. process+thread count 953 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/12/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 21s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 2m 9s Maven dependency ordering for branch
+1 💚 mvninstall 29m 0s trunk passed
+1 💚 compile 3m 35s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 25s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 22s trunk passed
+1 💚 mvnsite 1m 11s trunk passed
+1 💚 javadoc 1m 0s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 58s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 23s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 18m 11s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 20s Maven dependency ordering for patch
+1 💚 mvninstall 1m 25s the patch passed
+1 💚 compile 3m 25s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 25s the patch passed
+1 💚 compile 3m 24s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 24s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 13s the patch passed
+1 💚 mvnsite 1m 6s the patch passed
+1 💚 javadoc 0m 50s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 50s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 18s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui has no data from spotbugs
+1 💚 shadedclient 17m 8s patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 92m 46s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt hadoop-yarn-server-resourcemanager in the patch passed.
+1 💚 unit 1m 1s hadoop-yarn-capacity-scheduler-ui in the patch passed.
-1 ❌ asflicense 0m 43s /results-asflicense.txt The patch generated 1 ASF License warnings.
191m 55s
Reason Tests
Failed junit tests hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerConfigMutation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigWeightMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedLegacyQueueCreation
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySched
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfig
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode
hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesCapacitySchedDefaultLabel
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/11/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets compile javac javadoc mvninstall mvnsite unit spotbugs checkstyle
uname Linux 2b6950416b63 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 60cf053
Default Java Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/11/testReport/
Max. process+thread count 957 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/11/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

… format to include the new maximumQueueCapacityVectorInfo field
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 27s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 jsonlint 0m 0s jsonlint was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 44 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 291m 11s Maven dependency ordering for branch
+1 💚 mvninstall 134m 34s trunk passed
+1 💚 compile 3m 24s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 compile 3m 35s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 checkstyle 1m 23s trunk passed
+1 💚 mvnsite 1m 24s trunk passed
+1 💚 javadoc 1m 12s trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 1m 9s trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 29s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui no spotbugs output file (spotbugsXml.xml)
+1 💚 shadedclient 16m 18s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 18s Maven dependency ordering for patch
+1 💚 mvninstall 1m 24s the patch passed
+1 💚 compile 3m 13s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 13s the patch passed
+1 💚 compile 3m 31s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+1 💚 javac 3m 31s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 24s the patch passed
+1 💚 mvnsite 1m 17s the patch passed
+1 💚 javadoc 0m 58s the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu
+1 💚 javadoc 0m 54s the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
+0 🆗 spotbugs 0m 18s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui has no data from spotbugs
+1 💚 shadedclient 16m 51s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 91m 20s hadoop-yarn-server-resourcemanager in the patch passed.
+1 💚 unit 1m 0s hadoop-yarn-capacity-scheduler-ui in the patch passed.
-1 ❌ asflicense 0m 44s /results-asflicense.txt The patch generated 1 ASF License warnings.
584m 25s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/13/artifact/out/Dockerfile
GITHUB PR #8674
Optional Tests dupname asflicense shadedclient codespell detsecrets compile javac javadoc mvninstall mvnsite unit spotbugs checkstyle jsonlint xmllint
uname Linux 20440c89b7a4 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8ec8823
Default Java Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Multi-JDK versions /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/13/testReport/
Max. process+thread count 968 (vs. ulimit of 10000)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui U: hadoop-yarn-project/hadoop-yarn
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8674/13/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.7
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants