Repository navigation
Conversation
PrithMDP
force-pushed
the
fix-release-unknown-quota-type
branch
from
October 14, 2026 02:59
bfc462f to
687a97c
Compare
Author
|
@narendly @junkaixue can you PTAL? Please let me know if something needs adjusting. |
PrithMDP
force-pushed
the
fix-release-unknown-quota-type
branch
from
October 14, 2026 04:52
687a97c to
cc5cc0a
Compare
junkaixue
reviewed
Oct 14, 2026
PrithMDP
force-pushed
the
fix-release-unknown-quota-type
branch
from
October 15, 2026 19:44
cc5cc0a to
e558bc3
Compare
junkaixue
approved these changes
Oct 15, 2026
junkaixue
left a comment
Contributor
There was a problem hiding this comment.
lgtm. thanks for contributing this.
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.
Issues
Fixes #3192
Description
AssignableInstanceManager.release()only returned quota to_globalThreadBasedQuotaMapwhen the raw quota type was configured. For a task whose job type is not in the quota config,tryAssign()schedules it asDEFAULT, soassign()decrements the globalDEFAULTquota. On release, the raw (undefined) type was not in the map, so nothing was added back. Each such task permanently leaked 1 from globalDEFAULT. EventuallyhasGlobalCapacity("DEFAULT")returned false, blocking scheduling of DEFAULT and unknown-type jobs until global capacity was recomputed (instance/config change or controller restart).Fix:
release()now treats anullor unconfigured quota type asDEFAULT, mirroringtryAssign(). Per-instance usage inAssignableInstancewas already symmetric and is unchanged.Tests
TestAssignableInstanceManagerQuotaReleasetestReleaseUndefinedQuotaTypeRestoresGlobalDefaulttestReleaseNullQuotaTypeRestoresGlobalDefaultThe following is the result of the "mvn test" command on the appropriate module:
<paste the output of: mvn -pl helix-core test -Dtest=TestAssignableInstanceManagerQuotaRelease>
Changes that Break Backward Compatibility (Optional)
None.
Commits
Code Quality