Skip to content

Skip generating task context reports for sub tasks#17219

Merged
georgew5656 merged 2 commits intoapache:masterfrom
arunramani:master
Oct 2, 2024
Merged

Skip generating task context reports for sub tasks#17219
georgew5656 merged 2 commits intoapache:masterfrom
arunramani:master

Conversation

@arunramani
Copy link
Copy Markdown
Contributor

@arunramani arunramani commented Oct 2, 2024

Description

TaskContextReports generated by subtasks are not utilized by the parent task or preserved in any way. This change removes the inclusion of the task context for child tasks. This also fixes an issue with rolling upgrades from the version before TaskContextReport existed to after.

Release note

Fix native ingestion task failures during rolling upgrades from a version before Druid 30 to a later version.

Key changed/added classes in this PR
  • AbstractBatchIndexTask
  • PartialSegmentGenerateTask
  • SinglePhaseSubTask

This PR has:

  • been self-reviewed.
  • a release note entry in the PR description.

@kfaraz kfaraz added this to the 31.0.0 milestone Oct 2, 2024
Copy link
Copy Markdown
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

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

thanks for the fix, @arunramani !

@georgew5656 georgew5656 merged commit e5d027e into apache:master Oct 2, 2024
@suneet-s
Copy link
Copy Markdown
Contributor

suneet-s commented Oct 2, 2024

It looks like the issue where native ingestion tasks fail during rolling updates was introduced in #16041 which is in Druid 30. @arunramani @kfaraz I've updated the Release note in the description to mention that version as I don't see a connection with this change and Druid 24. Let me know if that is incorrect

@kfaraz
Copy link
Copy Markdown
Contributor

kfaraz commented Oct 2, 2024

Thanks, @suneet-s !

arunramani added a commit to arunramani/druid that referenced this pull request Oct 2, 2024
* Skip task context for sub tasks

* DRY a little + skip context for live report
arunramani added a commit to arunramani/druid that referenced this pull request Oct 2, 2024
* Skip task context for sub tasks

* DRY a little + skip context for live report
kfaraz pushed a commit that referenced this pull request Oct 3, 2024
* Skip task context for sub tasks

* DRY a little + skip context for live report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants