SriramMohanty
Databricks Employee
Databricks Employee

1)To Troubleshoot: Add metrics collection to your job to track the number of records processed vs. dropped.You can check the kafka offset.Compare Kafka offsets with checkpoint committed offsets.

2) Consider modifying your code to use continuous processing with a reasonable trigger interval instead of trigger(once=True) for more consistent results.

3)Temporary solution: Rename or delete the checkpoint directory to force reprocessing of all records from the beginning.