Skip to content

Revert issue with lifecycle change in mmless ingestion#15346

Merged
georgew5656 merged 1 commit into
apache:masterfrom
georgew5656:fixTaskLifecycle
Nov 8, 2023
Merged

Revert issue with lifecycle change in mmless ingestion#15346
georgew5656 merged 1 commit into
apache:masterfrom
georgew5656:fixTaskLifecycle

Conversation

@georgew5656

Copy link
Copy Markdown
Contributor

This reverts commit dc0b163.

The change updates TaskStatus to be reported by the abstract task instead of the overlord, the abstract task does not properly report duration and it is always reported as -1.

Key changed/added classes in this PR
  • AbstractTask
  • KubernetesTaskRunner
  • KubernetesPeonLifecycle

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@cryptoe cryptoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the revert. I believe the logic after this revert is correct.
Reporting the Kubernetes job runtime as the task duration makes more sense since I am assuming that will account for cleanup of the pod as well.
Also when people compare the job runtime across Kubernetes UI and web-console, they should see the same runtime of the job/task.

@georgew5656
georgew5656 merged commit 130bfbf into apache:master Nov 8, 2023
CaseyPan pushed a commit to CaseyPan/druid that referenced this pull request Nov 17, 2023
@LakshSingla LakshSingla added this to the 29.0.0 milestone Jan 29, 2024
FrankChen021 pushed a commit that referenced this pull request Feb 3, 2025
GabrielCWT pushed a commit to GabrielCWT/druid that referenced this pull request Sep 9, 2025
riovic918data pushed a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
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.

3 participants