druid icon indicating copy to clipboard operation
druid copied to clipboard

Suspicious persists during the ingestion

Open jihoonson opened this issue 6 years ago • 6 comments

Affected Version

0.17, 0.18

Description

2020-05-29T19:39:41,325 INFO [[index_kinesis_events_f3f78b11e73489e_cpmeplam]-appenderator-persist] org.apache.druid.segment.realtime.appenderator.AppenderatorImpl - Flushed in-memory data for segment[events_2020-05-29T17:00:00.000Z_2020-05-29T18:00:00.000Z_2020-05-29T17:00:00.217Z_58] spill[12] to disk in [2,861] ms (99,998 rows).
2020-05-29T19:39:41,354 INFO [[index_kinesis_events_f3f78b11e73489e_cpmeplam]-appenderator-persist] org.apache.druid.segment.realtime.appenderator.AppenderatorImpl - Flushed in-memory data for segment[events_2020-05-29T16:00:00.000Z_2020-05-29T17:00:00.000Z_2020-05-29T16:00:00.435Z_378] spill[9] to disk in [10] ms (2 rows).
...

Observed this pattern of persists was repeatedly happening when maxRowsInMemory was 100,000. maxTotalRows was default.

jihoonson avatar Jun 03 '20 18:06 jihoonson

Hi @jihoonson,

It could be helpful if you could share the entire log.

liran-funaro avatar Jun 14 '20 10:06 liran-funaro

@jihoonson same pattern of persists happening. Have you found the cause?

louisliu318 avatar Jul 21 '20 09:07 louisliu318

Hi Team, I have been seeing similar problems with Kafka Ingestion. I see similar log pattern 'Flushed in-memory data for segment ...' The kafka tasks have status 'Failed'. The supervisor task is in 'UNHEALTHY' state. The ingestion is not complete and none of the new tasks are successful. Attached Log for reference: index_kafka_tbt_data2_690d6435b564613_cihaeipo.log

abinashk-inf avatar Apr 04 '22 08:04 abinashk-inf

@abinashk-inf - It doesn't seem to be the same problem. Do you see persists in the log with very few rows?

abhishekagarwal87 avatar Apr 08 '22 11:04 abhishekagarwal87

@abhishekagarwal87 Usually this is seen with large number of rows (more than a million). ONce this problem starts, all successive kafka ingestion tasks for that particular datasource go to 'failed' state. And there is no way out unless I mark datasource as unused segment and issue a 'Kill' signal. After this I would need to -recreate datasource and start ingestion again.

abinashk-inf avatar Apr 08 '22 12:04 abinashk-inf

The full logs might help. Also, have you considered seeking help on the user mailing list or our apache slack channel (https://druid.apache.org/community/join-slack)?

abhishekagarwal87 avatar Apr 08 '22 12:04 abhishekagarwal87