Hi team, I am using Druid 34.0.0. We are using Ice...
# troubleshooting
m
Hi team, I am using Druid 34.0.0. We are using Iceberg, AWS Glue with Druid ingestion spec. The problem we are noticing is ingesting just "1000" records is taking almost 5 mins. We feels it's too expensive and not sure, we are fully utilizing the druid optimization properly or not. If Druid itself is NOT supporting Iceberg, with AWS Glue data load into Druid which is causing this performance issue. We are in the process running heavy load (100 millions) and so worried to use Druid or not with data ingestion process because of the time it takes. Kindly review if anybody has any suggestions or recommendation is highly appreciated. Thank you so much. My Ingestion config looks like:
while running this ingestion job, we have captured the Druid logs. please let us know. 2025-12-13T001511,882 INFO [task-runner-0-priority-0] org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexPhaseRunner - Waiting for subTasks to be completed 2025-12-13T001732,343 WARN [qtp1397052719-130] org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask - Encountered exception when getting live subtask report for task: partial_index_generate_dev_12345_abc__v_mpoeplhn_2025-12-13T001511.811Z java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class org.apache.druid.indexer.report.TaskReport]: missing type id property 'type' at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 1, column: 10] (through reference chain: org.apache.druid.indexer.report.TaskReport$ReportMap["error"]) at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:592) ~[guava-32.1.3-jre.jar:?] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:571) ~[guava-32.1.3-jre.jar:?] at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:91) ~[guava-32.1.3-jre.jar:?] at org.apache.druid.common.guava.FutureUtils.get(FutureUtils.java:52) ~[druid-processing-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.getTaskReport(ParallelIndexSupervisorTask.java:1881) ~[druid-indexing-service-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.getRowStatsAndUnparseableEventsForRunningTasks(ParallelIndexSupervisorTask.java:1711) ~[druid-indexing-service-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.doGetRowStatsAndUnparseableEventsParallelMultiPhase(ParallelIndexSupervisorTask.java:1688) ~[druid-indexing-service-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.doGetRowStatsAndUnparseableEvents(ParallelIndexSupervisorTask.java:1795) ~[druid-indexing-service-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.doGetLiveReports(ParallelIndexSupervisorTask.java:1838) ~[druid-indexing-service-34.0.0.jar:34.0.0] at org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask.getLiveReports(ParallelIndexSupervisorTask.java:1868) ~[druid-indexing-service-34.0.0.jar:34.0.0] at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) ~[?:?] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:840) [?:?] Caused by: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class org.apache.druid.indexer.report.TaskReport]: missing type id property 'type' at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 1, column: 10] (through reference chain: org.apache.druid.indexer.report.TaskReport$ReportMap["error"]) at org.apache.druid.java.util.common.jackson.JacksonUtils.readValue(JacksonUtils.java:61) ~[druid-processing-34.0.0.jar:34.0.0] at org.apache.druid.rpc.indexing.OverlordClientImpl.lambda$taskReportAsMap$6(OverlordClientImpl.java:232) ~[druid-server-34.0.0.jar:34.0.0] at com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture.doTransform(AbstractTransformFuture.java:252) ~[guava-32.1.3-jre.jar:?]
"maxNumConcurrentSubTasks": 2, I see this is the Type in Druid UI console - 'partial_index_generic_merge'
j
Five minutes to ingest 1000 records sounds like it's waiting on something. Can you share the log file for the main ingestion task? Also, regarding the number of subtasks, there should be a log line containing "estimatedNumSucceededTasks" that tells you how many subtasks it needs to run ... if this is a high number, then running only 2 at a time will queue up the subtasks and take longer ... so incresing maxNumConcurrentSubTasks to the estimated number will provide better parallelism. Also related to tasks in general -- do you have enough task slots on your cluster to eliminate task queuing (i.e. PENDING status)?
m
I don't see any "PENDING" status. I have enough worker slots (middle manager) however i'm wondering is this the behavior for Iceberg/Glue catalog.
estimatedNumSucceededTasks
here i'm attaching the "estimatedNumSucceededTasks" details from the log
Is this the known issue in Druid 34 "
Copy code
partial_index_generate_dev_12345_data1__v_mpoeplhn_2025-12-13T00:15:11.811Z
java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class org.apache.druid.indexer.report.TaskReport]: missing type id property 'type'
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 10] (through reference chain: org.apache.druid.indexer.report.TaskReport$ReportMap["error"])
	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:592) ~[guava-32.1.3-jre.jar:?]
When i run this index_parallel task which initiates partial_dimension_cardinality partial_index_generate partial_index_generic_merge tasks, i never seen this behavior so not sure, why are these many tasks and what's the usage in processing ?
j
Those three tasks are the three phases of reindexing ... that is normal. So it looks like it only wants to run one subtask, and that subtask is taking a long time. Can you share the log file of that subtask?
m
@John Kowtko Can you please confirm few things, just need your valuable inputs. thanks for looking at this. Based on druid docs - https://druid.apache.org/docs/latest/development/extensions-contrib/iceberg#known-limitations • It is recommended to use Iceberg filters on partition columns in the ingestion spec in order to limit the number of data files being retrieved. - https://druid.apache.org/docs/latest/ingestion/input-sources#iceberg-filter-object so i have a index_parallel spec with standard "timestampSpec" - primary partition column and "granularitySpec" = "intervals": ["2022-12-17T000000.000Z/2025-12-17T235959.999Z"] so when iceberg with Glue catalog, do i still need to add filter condition or whatever in "timestampSpec" is more than enough to push down the filter data based on this column meaning not necessary to use iceberg "filter" condition right? "ioConfig": { "type": "index_parallel", "inputSource": { "type": "iceberg","icebergCatalog": { "type": "glue", "catalogProperties": {"filter": { "type": "interval", "column": "transaction_date__v", // The column to apply the filter to"intervals": [ "2023-05-10T190000.000Z/2023-05-10T200000.000Z" ] } I'm having this change for 1000 records which is taking 5 mins to load data. Please help me understand this.
I see that - partial_index_generate took 3 mins and rest of the partial_index_generic_merge took 20 secs.
partial_index_generate has this log info - { "error": "Can't find chatHandler for handler[partial_index_generate_dev_12345_data__v_mpefhlof_2025-12-17T063251.629Z]" }