-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: Correct records sent to Kinesis Data Streams #13
Conversation
…a Streams This should be enhanced to cover firehose and other beats. This is just a starting point :)
Fixes s12v#11 `glide up` wasnt necessarily but anyway I verified this to work with the latest version of aws-sdk-go
e48c1c3
to
cd1aafe
Compare
Codecov Report
@@ Coverage Diff @@
## master #13 +/- ##
=======================================
+ Coverage 21.73% 24.74% +3%
=======================================
Files 3 3
Lines 92 97 +5
=======================================
+ Hits 20 24 +4
- Misses 67 68 +1
Partials 5 5
Continue to review full report at Codecov.
|
@mumoshu can you add the fix to firehose as well? |
// See https://github.com/elastic/beats/blob/5a6630a8bc9b9caf312978f57d1d9193bdab1ac7/libbeat/outputs/kafka/client.go#L163-L164 | ||
// You need to copy the byte data like this. Otherwise you see strange issues like all the records sent in a same batch has the same Data. | ||
buf = make([]byte, len(serializedEvent)) | ||
copy(buf, serializedEvent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
glide up
wasnt necessarily but anyway I verified this to work with the latest version of aws-sdk-goFixes #11
Depends on #12. Plese see the last commit to review the change made in this PR.