Commit 2f84999
authored
Configurable batch size (#393)
* Configurable batch size
* Keep 1.5s of data in cache
* Remove minimum 1024 cache size for faster rebalances in case of long processing time
* Changed property name to `js.consumer.max.batch.size`
* Use only 1.5 seconds cache size estimation aligned at batch size * concurrency
* Fix for at-least-once guarantee not ensured in case a seek happens on one partition and there are messages being fetched for other partitions
* Configurable cache size in milliseconds
* Add worker identifier to the payload for better debugging
* Fix for test flakyness
* Make `is cleared before rebalance` less flaky in case of increased time before first assignment
* Reduce flakyness of 'times out if messages are pending'
* FIXME about KIP-848 autocommit issue
* v1.7.01 parent f3fb2ec commit 2f84999
File tree
14 files changed
+253
-179
lines changed- ci
- lib
- kafkajs
- schemaregistry
- test/promisified
- admin
- consumer
- producer
- types
14 files changed
+253
-179
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
1 | 14 | | |
2 | 15 | | |
3 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
309 | 314 | | |
310 | 315 | | |
311 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments