Skip to content
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

All flush failures are retryable except for timestamp formatting. Fix… #287

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from

Conversation

PettitWesley
Copy link
Contributor

… concurrent retries failure message.

Issue #, if available:

Fixing this is low priority.

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… concurrent retries failure message.

Signed-off-by: Wesley Pettit <[email protected]>
@PettitWesley PettitWesley requested a review from a team as a code owner March 7, 2023 03:14
Comment on lines 295 to 301
func (outputPlugin *OutputPlugin) FlushAggregatedRecords(records *[]*kinesis.PutRecordsRequestEntry) int {

aggRecord, err := outputPlugin.aggregator.AggregateRecords()
if err != nil {
logrus.Errorf("[kinesis %d] Failed to aggregate record %v\n", outputPlugin.PluginID, err)
return fluentbit.FLB_ERROR
return fluentbit.FLB_RETRY
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Not sure about this one... If aggregation fails once, won't it probably fail again the next time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, we could spend more time investigating this, I don't have time right now with higher priority issues.

If there is any way for it to fail and not fail again then we should always return FLB_RETRY so I think if we don't know then we should return retry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comment on it in original PR :/ #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants