-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These are similar fixes to what has been done in the streams plugin. Please see the commit d0db8d4 as it looks like the same problem from #41 but I think this is a slightly neater way of handling it. We've been running this branch for 3 weeks now and it's gone from crashing very often to not crashing at all. Closes #39 Changelog: * Properly format json for firehose This was already done for streams in a086eea * Fix panic on Firehose ack/retry Not entirely sure what the problem is but we've seen panics from multiple places in the code. Mostly copying changes that were made to the streams client in ce91e04 and hoping it helps. * Fix nil dereference in Firehose failed responses The test fails with the old function and passes with the new one. I haven't seen the actual responses from the API but I suspect that when some records failed and others passed, only the ones that failed have an ErrorCode. So it needs to check if `r.ErrorCode != nil` before checking the value. It seems the `aws.StringValue` helper function does that and also removes the need for the other nil check.
- Loading branch information
1 parent
0b86784
commit 3f6c0fb
Showing
2 changed files
with
89 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters