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

[stable8] Allow chunk GC mtime tolerance for unfinished part chunks #24694

Merged
merged 1 commit into from
May 18, 2016

Conversation

PVince81
Copy link
Contributor

Backport of #24691 to stable8

Please review @icewind1991 @MorrisJobke @nickvergessen @schiesbn @rullzer

Whenever part chunks are written, every fwrite in the write loop will
reset the mtime to the current mtime. Only at the end will the touch()
operation set the mtime to now + ttl, in the future.

However the GC code is expecting that every chunk with mtime < now are
old and must be deleted. This causes the GC to sometimes delete part
chunks in which the write loop is slow.

To fix this, a tolerance value is added in the GC code to allow for
more time before a part chunk gets deleted.
@PVince81 PVince81 added this to the 8.0.14-current-maintenance milestone May 18, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @bartv2, @DeepDiver1975 and @tanghus to be potential reviewers

@PVince81
Copy link
Contributor Author

Tested using the steps #24653 (comment) and worked fine.

@rullzer
Copy link
Contributor

rullzer commented May 18, 2016

👍

2 similar comments
@icewind1991
Copy link
Contributor

👍

@Marginal
Copy link

👍

@PVince81 PVince81 merged commit 420dab7 into stable8 May 18, 2016
@PVince81 PVince81 deleted the stable8-fixchunkttl branch May 18, 2016 16:21
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants