Hi, when segments are dropped by a retention rule ...
# general
а
Hi, when segments are dropped by a retention rule and before the coordinator kill task starts, is there a way to get a list of the segments that the kill task would delete?
b
When the segments are marked as dropped by retention rule : this means in druid_segments table these specific segments will have USED=0, So you can run a query against druid_segments table to get the list of segments.
✅ 1
This might give a rough idea, because coordinator kill task will also have some other parameters depending on which it will delete the segments like:
druid.coordinator.kill.durationToRetain
and
druid.coordinator.kill.bufferPeriod
а
I tried to get the information from
sys.segments
in the Druid GUI, but there is no data. It looks like
sys.segments
only has active (
is_active=1
) segments. Do I need to go directly to the metadata storage?
b
Yes, That is correct.