Skip to content

Automatic cleanup druid_tasks table of metastore #5994

Closed

Description

@jihoonson

druid_tasks table stores all submitted tasks to overlords. Since this is never cleaned up automatically, it always grows as more tasks are submitted until people tidy up it manually.

So, it makes sense to periodically delete old entries from that table as the coordinator does for old segments. I think it also makes sense to delete old entries if druid.indexer.logs.kill.enabled option is set because deleting task logs usually mean you don't want to check that task anymore.

Activity

  1. jihoonson commented on Jul 11, 2018

    @jihoonson
    ContributorAuthor

    Related to #5979 (comment).

  2. stale commented on Jun 21, 2019

    @stale

    This issue has been marked as stale due to 280 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.

  3. xvrl commented on Feb 3, 2022

    @xvrl
    Member

    @jihoonson @gianm wasn't this fixed by #6592 ?

  4. gianm commented on Feb 3, 2022

    @gianm
    Contributor

    Certainly looks like it.

  5. maytasm commented on Feb 3, 2022

    @maytasm
    Contributor

    I have recently tested this and druid.indexer.logs.kill does remove both the log file and the task metadata.

  6. xvrl commented on Feb 3, 2022

    @xvrl
    Member

    ok, I'll close it then. We can reopen if we missed anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions