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

buffer: warning message for restoring buffer with flush_at_shutdown #4027

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

daipom
Copy link
Contributor

@daipom daipom commented Jan 26, 2023

Which issue(s) this PR fixes:
Partial fix for #3970

What this PR does / why we need it:
When flush_at_shutdown is true, the remaining chunk files during resuming are possibly broken since there may be a power failure or similar failure.

Without this log, even if we notice that we have received corrupted data on the destination server, we can not know which chunks may have been corrupted.

Docs Changes:
Not needed.

Release Note:
Add warning messages for restoring buffer with flush_at_shutdown true.

Copy link
Member

@ashie ashie left a comment

Choose a reason for hiding this comment

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

LGTM

Is it O.K. to merge this before #4025 ?

@daipom
Copy link
Contributor Author

daipom commented Jan 27, 2023

Thanks for your review!

Yes, please!

Copy link
Member

@ashie ashie left a comment

Choose a reason for hiding this comment

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

Sorry, one more thing.

When flush_at_shutdown is true, the remaining chunk files during resuming are possibly broken since there may be a power failure or similar failure.

Could you add this information as the commit message or comment in the code?

@daipom
Copy link
Contributor Author

daipom commented Jan 27, 2023

Indeed! I will add the comment to the code.

@daipom
Copy link
Contributor Author

daipom commented Jan 27, 2023

I have added the comment at 0807567.

Copy link
Member

@ashie ashie left a comment

Choose a reason for hiding this comment

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

Thanks!

@ashie ashie merged commit 64509a1 into fluent:master Jan 27, 2023
@daipom daipom deleted the add-warning-for-restoring-buffer branch January 27, 2023 04:54
@daipom
Copy link
Contributor Author

daipom commented Jan 27, 2023

Thanks for merging!

@ashie ashie added this to the v1.16.0 milestone Feb 9, 2023
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