-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual commitAsync completes before actual commit #94
Comments
Good catch @voidconductor ! Will fix it before the next release |
I've recently tried to fix this, and it turned out to be harder than I thought. Looks like apache kafka client puts callbacks passed to So naive solution with |
In this case, I think we could either include a comment about it or return a I assume we can't cancel commit so perhaps even |
* Async commit completed with callback (#94) Add consumer polling (#94) AutoCommit polling logic (#94) Remove nested task loop Remove redundant atomic refs Add test for (#101) Apply changes to older versions * Tests passing * Observable poll heartbeat rate * Resolves merge conflicts * Unused imports * Multiple threads test failing * Test small poll heartbeat and slow upstream * ScalafmtAll * Removes lambda anonymous class for scala 11 compatibility * Scaladoc fix * MR Feedback * Unused import * Adding poll heartbeat tests * l * Improved rebalancing test scenarios * a * Improved test * Monix Kafka benchmarks for consumer, single and sink producer Block Fix Binded connection First benchmark for kafka producer Added kafka benchmark strategy plan Added sink and consumer benchmarks Producer results Akka Removed references to akka a Final * Benchmarks * Fs2 * Heartbeat poll * Benchmarks updated * Private poll heartbeat rate * Some improvements * Fix unexpected consumed records * Benchmarks with different pollHeartbeatIntervals * New benchmark results * More benchmarking * Increase consumed records on perf test * Set kafka-clients dependency to 1.1.1 * RC8 - ProducerBenchmarks * Provided scala compat * Downgrade scalacheck dependency * Clean up * Fixed topic regex tests * Typo * Update embedded kafka dependency * Port back to older kafka subprojects * A * Make poll interval rate private on kafka 10 and 9 * Bit of clean up and updated readme * Update changelog and trigger pipeline * Test indentation fix * Add logback in test * Add unchanged topic partition test case * Kafka tests running on github actions * Renames github workflows folder * Updates scala action * Removes tests for kafka 0.9.x Revmoves travis-ci * Add benchmark with autocomit async and sync scenarios * Removed benchmark results file * Some clean up * Use pollTimeout and updated benchmark results * ScalafmtAll * Ignore Ds_store file * Removes logback file from main * Remove unnecessary stuff * Remove unused import * Benchmarks readme * Small correction * MR Feedback
In
KafkaCOnsumerObservableManualCommit.scala:56
there's incorrect implementation of async commitApache kafka
commitAsync(offsets, callback)
returns immediately and invokes callback when commit completesthis task completes when
consumer.commitAsync
returns, not when callback invoked and also ignores possible commit errors also passed through callback, it should probably be rewritten toTask.async
The text was updated successfully, but these errors were encountered: