Skip to content

Port Netflix/Hystrix#1976 remove canceled timer tasks#2

Open
amrith92 wants to merge 1 commit into
masterfrom
port-netflix-1976-remove-on-cancel-policy
Open

Port Netflix/Hystrix#1976 remove canceled timer tasks#2
amrith92 wants to merge 1 commit into
masterfrom
port-netflix-1976-remove-on-cancel-policy

Conversation

@amrith92

Copy link
Copy Markdown

Ports Netflix#1976 into this fork.\n\nThe upstream change enables ScheduledThreadPoolExecutor#setRemoveOnCancelPolicy(true) for HystrixTimer so canceled timeout tasks are removed from the scheduler queue instead of remaining until their delay elapses.\n\nUpstream reference: https://github.com/Netflix/Hystrix/pull/1976\nOriginal commit: 2f4520d\n\nVerification:\n- PASS: JAVA_HOME=/Users/amrith/.sdkman/candidates/java/17.0.6-tem ./gradlew :hystrix-core:test --tests com.netflix.hystrix.util.HystrixTimerTest --no-daemon\n- NOTE: ./gradlew :hystrix-core:test --no-daemon failed under Java 21 before compilation because Gradle/Groovy cannot parse class file major version 65. Re-run under Java 17 progressed into tests but hung in the broader test task, so it was stopped and replaced with the focused HystrixTimer test above.\n

@tully-review

tully-review Bot commented May 27, 2026

Copy link
Copy Markdown

Looks good as a faithful upstream port.

Only compatibility check: setRemoveOnCancelPolicy(true) requires Java 7+. If this fork's minimum runtime is Java 7+, merge as-is; if Java 6 is still supported, gate it reflectively.

Focused verification is sufficient for this scoped port. A regression test or explicit upstream reference would be nice, not blocking.

@tully-review tully-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Looks good as a faithful upstream port; only the fork's minimum Java runtime needs confirmation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant