Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingest storage: proper shutdown of partitionCommitter (#9436)
This `partitionCommitter` would be shut down via the services manager as soon as the service context is cancelled. This means that they shut down in parallel with the `PartitionReader`. The race comes when the `partitionCommitter` has already shut down while the `PartitionReader` is still processing some records. Then when the `PartitionReader` tries to `enqueueCommit`, that sets the atomic, but does not send this to Kafka. As a result we may not always persist the latest commit to Kafka. Signed-off-by: Dimitar Dimitrov <[email protected]>
- Loading branch information