Repository navigation
[Fix-17854] [Worker&SQL Task] Fix SQL task query result alert not being sent #18549
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
Merged
+1,184
−20
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
8fdb5e9
Implement SQL task query result alert via Master-side event handling
f4ad79c
restore 3.5.0_schema
c19f72d
Merge branch 'Fix-17854-2' of github.com:njnu-seafish/dolphinschedule…
5b25a77
Migrate sendEmail field to sendAlert in historical data
78f0940
refactor prepareTaskResultAlert
2b76ad1
add sql result log
e70a6e6
merge dev
793d28a
update sendTaskResultAlert
045b78a
Merge remote-tracking branch 'origin/dev' into Fix-17854-2
03aef24
update incompatible.md
41221d3
add SqlTask result alert test
0be063a
update incompatible.md
68b7934
Revert sendEmail field rename to sendAlert in SQL task params
84e68ee
revert AlertSendRequest
67f061a
revert TaskDefinitionMapperTest
33027f5
Merge branch 'dev' into Fix-17854-2
njnu-seafish afd36f4
Make task-result alert persistence idempotent and post-state-transition
42a4271
Merge branch 'dev' into Fix-17854-2
njnu-seafish 1cd5054
Merge branch 'dev' into Fix-17854-2
SbloodyS caa7d22
Merge branch 'dev' into Fix-17854-2
njnu-seafish 49e8f88
Initialize task-result alert with WAIT_EXECUTION status and add sendT…
63f85f1
Include task instance ID in alert sign to prevent deduplication of di…
e8776db
Merge branch 'apache:dev' into Fix-17854-2
njnu-seafish 1ec1b64
Guard null AlertType during rolling upgrade and document Alert Server…
eaa7cd9
Restore deprecated AbstractTask alert API as compatibility bridges to…
aa8df24
Enforce task-result alert idempotency at database level with unique c…
346df77
format incompatible.md
2cdce6c
Merge branch 'dev' into Fix-17854-2
njnu-seafish bf36a33
Fix databaseId mismatch and replace INSERT IGNORE with ON DUPLICATE K…
7647cb2
Merge branch 'dev' into Fix-17854-2
njnu-seafish 385a9de
Merge branch 'Fix-17854-2' of github.com:njnu-seafish/dolphinschedule…
7e58adc
Restore deprecated protected fields needAlert and taskAlertInfo in Ab…
30b2c9b
Reject null alertType in AlertSender and document rolling upgrade ord…
78b2496
format spotless
2eafba1
update h2 sql
f67fb50
update h2 sql
4d797d7
Merge branch 'dev' into Fix-17854-2
njnu-seafish 5c0be35
Merge branch 'dev' into Fix-17854-2
njnu-seafish 949815b
Merge branch 'dev' into Fix-17854-2
njnu-seafish 37f4ae8
Merge branch 'dev' into Fix-17854-2
njnu-seafish 46e40d2
Replace dialect-specific upsert with INSERT...SELECT...WHERE NOT EXIS…
1830c2b
Merge branch 'dev' into Fix-17854-2
njnu-seafish 24518d0
Merge remote-tracking branch 'origin/dev' into Fix-17854-2
68653b8
update version 3.5.0
5d22d11
update version 3.5.0
f869b06
Merge branch 'dev' into Fix-17854-2
njnu-seafish 2a70139
Merge branch 'dev' into Fix-17854-2
njnu-seafish 9d4ab05
Clean up redundant comments and code
b1314fd
Merge branch 'dev' into Fix-17854-2
njnu-seafish aa3af01
Merge branch 'dev' into Fix-17854-2
njnu-seafish b2ff7d4
Move task-result alert dedup logic from SQL to application code
c7840ad
Merge branch 'dev' into Fix-17854-2
njnu-seafish 31f6f57
Merge branch 'dev' into Fix-17854-2
njnu-seafish 02ab4a2
Merge branch 'dev' into Fix-17854-2
SbloodyS 5a4501d
Merge branch 'dev' into Fix-17854-2
njnu-seafish cc7eeba
Remove data deletion from upgrade scripts and update incompatible docs
a121df8
Merge branch 'dev' into Fix-17854-2
njnu-seafish b20dab9
Merge branch 'dev' into Fix-17854-2
njnu-seafish 872fc50
Catch DuplicateKeyException in addAlert and saveTimeoutAlert to align…
004a7c5
Keep full SQL query result in task alert and sync legacy alert fields…
80690d4
Merge branch 'dev' into Fix-17854-2
njnu-seafish e49aa57
Merge branch 'dev' into Fix-17854-2
SbloodyS 96134ef
Merge branch 'dev' into Fix-17854-2
njnu-seafish 15c18bd
Only persist task result alert when the task actually transitions to …
be65492
Document recovery steps when the rolling upgrade order is not followed
424a311
Merge branch 'dev' into Fix-17854-2
njnu-seafish 37e4552
Reuse BaseMapper.insert to persist task-result alert
89f40fa
Merge branch 'dev' into Fix-17854-2
njnu-seafish 79a0e12
Dedup task-result alerts by sign only
7596e45
Drop redundant idx_sign superseded by the alert dedup unique index
90d4577
update incompatible.md
77809e5
Merge branch 'Fix-17854-2' of github.com:njnu-seafish/dolphinschedule…
f4b37e5
Limit SQL task-result alert content size and mark omissions
e8122a4
Merge branch 'dev' into Fix-17854-2
njnu-seafish adfc224
Merge branch 'dev' into Fix-17854-2
njnu-seafish 63664d9
Drop the alert sign unique index and keep the schema unchanged
4f53d83
Bound task-result alert content by serialized UTF-8 byte budget
ca34da3
Merge branch 'Fix-17854-2' of github.com:njnu-seafish/dolphinschedule…
eb28624
Make SQL task-result alert limits configurable via common.properties
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the upgrade fails, users need to be provided with specific operation steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. Fixed in be65492 — the upgrade doc now provides concrete recovery steps for a failed upgrade.
The new "If the upgrade fails" section (after the Rolling Upgrade Order) covers the case where Master/Worker were already upgraded before the Alert Server and new alert_type values were persisted to t_ds_alert:
Upgrade the Alert Server to a version that includes the new enum values and restart it — alerts stuck in WAIT_EXECUTION will be picked up and delivered normally.
If the Alert Server cannot be upgraded immediately, stop the old Alert Server first, then back up and clean up the affected rows (create table t_ds_alert_bak as select * from t_ds_alert where alert_type = 8; followed by delete from t_ds_alert where alert_type = 8;), so they cannot keep blocking alert delivery.
The Chinese upgrade doc is updated in sync.