[CICP-52128] Remove ignored MaxForcedReassignmentsPerTask - #318
Merged
LZD-PratyushBhatt merged 1 commit intoSep 24, 2026
Merged
LZD-PratyushBhatt merged 1 commit into
LZD-PratyushBhatt merged 1 commit into
Conversation
Stop exposing and serializing MaxForcedReassignmentsPerTask while preserving real retry limits and accepting legacy stored records. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sjainit
requested review from
LZD-PratyushBhatt,
arkmish,
kabragaurav,
laxman-ch,
ngngwr and
thestreak101
as code owners
September 23, 2026 10:59
LZD-PratyushBhatt
approved these changes
Sep 24, 2026
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
https://linkedin.atlassian.net/browse/CICP-52128
Parent campaign: CICP-51496.
Description
Retire the ignored
MaxForcedReassignmentsPerTaskjob setting rather than continuing to expose and serialize a deprecated no-op.getMaxAttemptsPerTask()argument that previously populated the obsolete field.MaxAttemptsPerTaskvalidation/defaults, andTerminalStateExpiryunchanged.Tests
TestJobConfigValidation: generic/targeted jobs with absent, zero, positive, negative and malformed legacy values; typed rebuilding, copies, unchanged source records, workflow payloads, effective retry limits, defaults and invalid retry-limit rejection.TestTaskRebalancerRetryLimit: persisted job config omits the retired field while the existing integration assertions verify tasks still stop at two attempts.Java 11 command:
mvn -B -ntp -pl helix-rest -am \ '-Dtest=TestJobConfigValidation,TestWorkflowYamlParsing,TestTaskUtil,TestTaskRebalancerRetryLimit' \ -Dsurefire.failIfNoSpecifiedTests=false packageResult: 42 core tests passed, zero failures/errors/skips; core and REST compiled/packaged. No REST tests were selected, and the full repository suite was not run.
javapconfirms the retired setter/default/enum are absent and theMaxAttemptsPerTaskandTerminalStateExpiryAPIs remain.git diff --checkpasses.Changes that Break Backward Compatibility (Optional)
This intentionally removes
JobConfig.Builder.setMaxForcedReassignmentsPerTask(int),JobConfig.DEFAULT_MAX_FORCED_REASSIGNMENTS_PER_TASK, and the protected config enum entry. Java callers must remove references and be rebuilt/released before consuming this Helix release; existing binaries invoking the setter are incompatible.Existing ZK fields are already ignored by scheduling and do not require deletion. No live configuration writes, deployment, or automated stored-record migration are included. Removing the deprecated API does not change
MaxAttemptsPerTask, failure policy, task placement, or terminal-state retention.Documentation (Optional)
Root README documents the retired API, downstream compatibility gate and legacy-record behavior. Versioned historical Apache REST examples are left unchanged.
Commits
One independent commit based on dev, linked to CICP-52128.
Code Quality
Changes follow the surrounding Java conventions. No unrelated controller or task-scheduling algorithms are modified.
🤖 Generated with GitHub Copilot CLI