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

engine: added retry cleanup when a task cannot be retried #6862

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

leonardo-albertovich
Copy link
Collaborator

Due to how flb_task_users_release determines if it can drop the involved chunk and how entries in the retries list are handled by flb_task_retry_create we need to explicitly remove the retry entries related to the failed task and plugin instance before calling flb_task_users_dec to ensure that chunks linked to tasks that had at least one retry but are deemed not retriable afterwards can be properly disposed of.

Signed-off-by: Leonardo Alminana [email protected]

Due to how flb_task_users_release determines if it can drop the involved
chunk and how entries in the retries list are handled by
flb_task_retry_create we need to explicitly remove the retry entries
related to the failed task and plugin instance before calling
flb_task_users_dec to ensure that chunks linked to tasks that had at
least one retry but are deemed not retriable afterwards can be properly
disposed of.

Signed-off-by: Leonardo Alminana <[email protected]>
@leonardo-albertovich leonardo-albertovich temporarily deployed to pr February 14, 2023 14:24 — with GitHub Actions Inactive
@leonardo-albertovich leonardo-albertovich temporarily deployed to pr February 14, 2023 14:24 — with GitHub Actions Inactive
@lecaros lecaros added this to the Fluent Bit v1.9.11 milestone Feb 14, 2023
@leonardo-albertovich leonardo-albertovich temporarily deployed to pr February 14, 2023 14:41 — with GitHub Actions Inactive
@edsiper edsiper merged commit 712e5fb into 1.9 Feb 20, 2023
@edsiper edsiper deleted the leonardo-1.9-retry-chunk-disposal-fix branch February 20, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants