Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw user cancellation exception if the job was cancelled before it was initialized [5.3.z] #25452

Merged

Conversation

k-jamroz
Copy link
Contributor

@k-jamroz k-jamroz commented Sep 14, 2023

Wrong exception was thrown if the job was cancelled very early by the user. Instead of specific CancellationByUserException the generic CancellationException was thrown. This caused some flakiness in unit tests (see eg. https://jenkins.hazelcast.com/job/Hazelcast-pr-builder/20340/testReport/junit/com.hazelcast.jet.impl/JobSummaryTest/when_batchJob_cancelled/)

Not adding unit test because there does not seem to be an easy way to trigger this situation.

Backport of: #25383

Checklist:

  • Labels (Team:, Type:, Source:, Module:) and Milestone set
  • Label Add to Release Notes or Not Release Notes content set
  • Request reviewers if possible
  • Send backports/forwardports if fix needs to be applied to past/future releases

@k-jamroz k-jamroz added Type: Defect Source: Internal PR or issue was opened by an employee Team: SQL Add to Release Notes Module: Jet Issues/PRs for Jet labels Sep 14, 2023
@k-jamroz k-jamroz added this to the 5.3.3 milestone Sep 14, 2023
@k-jamroz k-jamroz enabled auto-merge (squash) September 14, 2023 13:00
@k-jamroz k-jamroz merged commit bbc1322 into hazelcast:5.3.z Sep 14, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add to Release Notes Module: Jet Issues/PRs for Jet Source: Internal PR or issue was opened by an employee Team: SQL Type: Defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants