Repository navigation
[fix][io] Fix kinesis avro bytes handling - #24316
Conversation
The AVRO codec uses ByteBuffer for the BYTES schema and not byte[]
8ec9941 to
84760f9
Compare
|
/pulsarbot rerun-failure-checks |
lhotari
left a comment
There was a problem hiding this comment.
Based on the unit test failures, it looks like unit tests are making some assumptions. Please ensure that the integration test covers the original issue.
Yes. My intent was to improve the integration test in a follow-up PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #24316 +/- ##
============================================
+ Coverage 73.57% 74.27% +0.70%
+ Complexity 32624 32185 -439
============================================
Files 1877 1866 -11
Lines 139502 145104 +5602
Branches 15299 16591 +1292
============================================
+ Hits 102638 107781 +5143
+ Misses 28908 28795 -113
- Partials 7956 8528 +572
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
I think it's better to add the integration test directly to this PR. |
|
/pulsarbot rerun-failure-checks |
Done. |
|
/pulsarbot rerun-failure-checks |
(cherry picked from commit 54ade7e)
(cherry picked from commit 54ade7e)
(cherry picked from commit 54ade7e)
(cherry picked from commit 54ade7e)
Motivation
AVRO uses
ByteBufferfor schema BYTES.In the Kinesis sink, when converting AVRO record to JSON, we get
Because in
JsonConverter::toJson, we doand
valueis aByteBuffer.Modifications
ByteBufferinJsonConverter::toJsonVerifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: cbornet#19