Skip to content

"Delete unused segments(issue kill task)" on console does not work properly #11568

Closed

Description

@pphust

From datasources menu of Druid console, I have found "Delete unused segments(issue kill task)" but it does not work properly.
When I click it, the killing task is always pending and can not be executed.

Affected Version:
0.20.1.
I guess the earlier version has similar problem.

Description:
I have checked the coordinator log and records in druid_tasklocks table. The root cause is that killing task is trying to acquire time lock of 1000/3000, which is hardcoded in web-console/src/views/datasource-view/datasource-view.tsx.
But the time trunk is too large and part of it has been locked by realtime ingesting task. So the killing task will never be executed.

I can submit killing task through -XDELETE /druid/coordinator/v1/datasources/{dataSourceName}/intervals/{interval} to reslove the probelm. But I think here the lock interval should be changed to 1000/current time or other sth.

Activity

  1. FrankChen021 commented on Aug 10, 2021

    @FrankChen021
    Member

    I opened this issue in #10508. But it seems that it has been resolved since 0.21 and I can't remember which PR resolved it.

  2. lejinghu commented on Jul 2, 2022

    @lejinghu

    The issue has not been resolved and can still be found in 0.22.1

  3. vogievetsky commented on Nov 29, 2022

    @vogievetsky
    Contributor

    I believe #13431 fixed this!

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