Commit 1293cab
committed
Fix ConcurrentModificationException on commitLater
Invocations of consumer.commitAsync should be protected under the consumer semaphore, or you get errors like this when trying to call commitLater concurrently with poll:
java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access1 parent 8df890d commit 1293cab
File tree
1 file changed
+1
-1
lines changed- skafka/src/main/scala/com/evolutiongaming/skafka/consumer
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
0 commit comments