Commit 83c7e39
committed
Fix
The real content received by the Kafka consumer is:
Record key bytes - The serialized bytes of each record's key
Record value bytes - The serialized bytes of each record's value (the actual message payload)
Record headers bytes - The serialized bytes of any headers attached to the record
Record metadata overhead - Internal Kafka metadata for each record (offset, timestamp, etc.)
Batch/compression overhead - Additional bytes from batch structures and compression metadata
All of those are contributing to the number of bytes received.
Since we don't have compression and headers, we calculate:
`value + key + timestamp + offset`.
In our test-case it is `23` per record.MessageDrivenAdapterTests for fetch.min.bytes=46
1 parent 17beaef commit 83c7e39
File tree
1 file changed
+1
-1
lines changed- spring-integration-kafka/src/test/java/org/springframework/integration/kafka/inbound
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
0 commit comments