Igor Berman
04/15/2024, 10:22 AMAmatya Avadhanula
04/15/2024, 10:25 AMsuppose we started to use concurrent append feature (i.e. "useConcurrentLocks": true ) both under compaction & kafka ingestors, do we have option to pass same context for kill tasks?Kill tasks cannot run concurrently with ingestion using these locks unfortunately
Amatya Avadhanula
04/15/2024, 10:27 AMkill task is supposed to remove only unused segments so why it takes any locks?I believe this is due to the legacy flag
markAsUnused where used segments can also be marked as unused and killedAmatya Avadhanula
04/15/2024, 10:30 AMIgor Berman
04/15/2024, 10:31 AMmarkAsUnused you mean that kill task itself can mark segments as unused and kill(aka delete) segments in same "run"?Amatya Avadhanula
04/15/2024, 10:32 AMif (markAsUnused) {
numSegmentsMarkedAsUnused = toolbox.getTaskActionClient().submit(
new MarkSegmentsAsUnusedAction(getDataSource(), getInterval())
);
<http://LOG.info|LOG.info>("Marked [%d] segments of datasource[%s] in interval[%s] as unused.",
numSegmentsMarkedAsUnused, getDataSource(), getInterval());
} else {
numSegmentsMarkedAsUnused = 0;
}Igor Berman
04/15/2024, 10:34 AMAmatya Avadhanula
04/15/2024, 10:35 AMMoveTask RestoreTask and ArchiveTaskAmatya Avadhanula
04/15/2024, 10:35 AMIgor Berman
04/15/2024, 10:38 AMAmatya Avadhanula
04/15/2024, 10:42 AMAmatya Avadhanula
04/15/2024, 10:42 AMIgor Berman
04/15/2024, 10:42 AMIgor Berman
04/15/2024, 10:43 AMIgor Berman
04/15/2024, 10:43 AMAmatya Avadhanula
04/15/2024, 10:46 AMIgor Berman
04/15/2024, 10:53 AMAmatya Avadhanula
04/15/2024, 10:54 AMJohn Kowtko
04/15/2024, 12:41 PMAmatya Avadhanula
04/15/2024, 12:42 PMIgor Berman
04/15/2024, 1:12 PMIgor Berman
04/15/2024, 1:55 PMAmatya Avadhanula
04/15/2024, 1:55 PMIgor Berman
04/15/2024, 2:27 PMI think one way would be to try adding a parameter to kill tasks so that they do not take locks.Amatya Avadhanula
04/15/2024, 3:01 PMIgor Berman
04/15/2024, 3:02 PMAmatya Avadhanula
04/15/2024, 3:02 PMisReady method for KillUnusedSegmentsTask to use APPEND locks instead of EXCLUSIVEAmatya Avadhanula
04/15/2024, 3:03 PMIgor Berman
04/16/2024, 7:09 AMIf you are using concurrent append and replace, please do not manually clean deep storage locations
Different segments may reuse the same file in deep storage
does segment table contains data that can help me to analyzer which file is used and which file is already not used by any segment?
I see payload that contains
"path": "<hdfs://taz-il/production/druid_deep_storage/sp_campaigns_realtime_aggregation_by_request_time/20240413T000000.000Z_20240413T010000.000Z/2024-04-13T00_00_01.528Z/7_f908dc30-38eb-4489-b0f4-21d6a4f14fa9_index.zip>"Igor Berman
04/16/2024, 7:13 AMAmatya Avadhanula
04/16/2024, 8:30 AMAmatya Avadhanula
04/16/2024, 8:30 AMAmatya Avadhanula
04/16/2024, 8:31 AMIn addition, do you think I should fill request for improvement in this area?Sure, please create an issue. Are you also interested in contributing to it?
Igor Berman
04/16/2024, 9:17 AMI recall that you said that you don't mark data as used later. In that case the kill task can handle load spec duplication
I'm interested in contributing 🙂 I'm currently working on something else - https://github.com/apache/druid/pull/16266 (maybe it's less important)Igor Berman
04/16/2024, 9:18 AMAmatya Avadhanula
04/16/2024, 9:18 AMIgor Berman
04/16/2024, 9:19 AMIgor Berman
04/16/2024, 9:19 AMAmatya Avadhanula
04/16/2024, 9:19 AMAmatya Avadhanula
04/16/2024, 9:20 AMAmatya Avadhanula
04/16/2024, 9:20 AMAmatya Avadhanula
04/16/2024, 9:20 AMAmatya Avadhanula
04/16/2024, 9:21 AMIgor Berman
04/16/2024, 9:21 AMIgor Berman
04/16/2024, 9:21 AMAmatya Avadhanula
04/16/2024, 9:21 AMIgor Berman
04/16/2024, 9:22 AMAmatya Avadhanula
04/16/2024, 9:22 AMIgor Berman
04/16/2024, 9:22 AMIgor Berman
04/16/2024, 9:22 AMAmatya Avadhanula
04/16/2024, 9:22 AMIgor Berman
04/30/2024, 4:48 PMAmatya Avadhanula
05/01/2024, 1:39 AMAmatya Avadhanula
05/01/2024, 2:07 AMIgor Berman
05/01/2024, 6:14 AMIgor Berman
05/01/2024, 8:11 AMAmatya Avadhanula
05/01/2024, 10:24 AMAmatya Avadhanula
05/01/2024, 10:24 AM