Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ConfluentKafkaInput to store offsets for last message
This commit refactors the ConfluentKafkaInput class to store offsets for the last message referenced by `_last_valid_records`. Previously, offsets were stored for each kafka partition in `_last_valid_records`, but now only the last valid record is stored. This change improves the efficiency of offset storage and reduces memory usage. Code changes: - Modified `ConfluentKafkaInput` class in `logprep/connector/confluent_kafka/input.py` - Removed `_last_valid_records` dictionary and replaced it with `_last_valid_record` variable - Updated `batch_finished_callback` method to store offsets for the last valid record
- Loading branch information