[fix](job) fix StreamingInsertJob incorrectly counting canceled tasks#61894
Merged
JNSimba merged 6 commits intoapache:masterfrom Apr 2, 2026
Merged
[fix](job) fix StreamingInsertJob incorrectly counting canceled tasks#61894JNSimba merged 6 commits intoapache:masterfrom
JNSimba merged 6 commits intoapache:masterfrom
Conversation
StreamingInsertJob does not support manual task cancellation. The cancelAllTasks() is only triggered internally when the job is STOPPED or PAUSED, which semantically means the task was interrupted, not user-canceled. Change to increment failedTaskCount instead so that canceledTaskCount always stays 0 for streaming jobs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Member
Author
|
run buildall |
TPC-H: Total hot run time: 26714 ms |
TPC-DS: Total hot run time: 169102 ms |
Member
Author
|
run nonConcurrent |
Contributor
|
PR approved by anyone and no changes requested. |
Contributor
|
PR approved by at least one committer and no changes requested. |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 26617 ms |
Contributor
FE UT Coverage ReportIncrement line coverage `` 🎉 |
Member
Author
|
run external |
TPC-H: Total hot run time: 26701 ms |
TPC-DS: Total hot run time: 169289 ms |
Member
Author
|
run buildall |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 26636 ms |
TPC-DS: Total hot run time: 170015 ms |
Member
Author
|
run buildall |
1 similar comment
Member
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
Member
Author
|
run nonConcurrent |
Member
Author
|
run performance |
92fc2b2 to
5a5b4a0
Compare
TPC-H: Total hot run time: 29237 ms |
TPC-DS: Total hot run time: 180518 ms |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 29257 ms |
TPC-DS: Total hot run time: 180338 ms |
Member
Author
|
run p0 |
1 similar comment
Member
Author
|
run p0 |
Contributor
|
PR approved by at least one committer and no changes requested. |
Member
Author
|
run p0 |
github-actions bot
pushed a commit
that referenced
this pull request
Apr 2, 2026
…#61894) ## What problem does this PR solve? Problem Summary: - `StreamingInsertJob` does not support manual task cancellation - `cancelAllTasks()` is only triggered internally when job is STOPPED or PAUSED, meaning the task was interrupted passively - Change `canceledTaskCount.incrementAndGet()` in `cancelAllTasks()`, when task is running `canceledTaskCount` need incr
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.
What problem does this PR solve?
Problem Summary:
StreamingInsertJobdoes not support manual task cancellationcancelAllTasks()is only triggered internally when job is STOPPED or PAUSED, meaning the task was interrupted passivelycanceledTaskCount.incrementAndGet()incancelAllTasks(), when task is runningcanceledTaskCountneed incrTest plan