[FLINK-17766] Use checkpoint lock instead of fine-grained locking in Kafka AbstractFetcher
Before, we were locking on the partition state object itself to prevent concurrent access (and to make sure that changes are visible across threads). However, after recent changes we hold the checkpoint lock for emitting the whole "bundle" of records from Kafka. We can now also just use the checkpoint lock in the periodic emitter callback and then don't need the fine-grained locking on the state for record emission.
Showing
想要评论请 注册 或 登录