-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not immediately abort the extraction if a seed chunk is invalid (#220
) * Factor out writeChunk to a separate function Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com> * Do not immediately abort the extraction if a seed chunk is invalid If the seed points to a RW location it may happen that some files change while we are in the middle of an extraction. When using the "InvalidSeedActionRegenerate" option, we can try harder and attempt to take the invalid chunks from the self seed or the store. If both of those fail too, then we abort the entire operation. Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com> * Limit the maximum number of chunks is a single seed sequence If a seed is nearly completely equal to the output, we may end up with just a few SeedSequencer that are very long and others that are just one/a few chunks long. Because each SeedSequencer is handled by a goroutine (from a pool), we may reach a situation where the majority of the goroutines finish their operations and are just waiting for the longer SeedSequencer jobs to end. By limiting the maximum amount of chunks in the SeedSequencer, we will have jobs that are more balanced in term of amount of work. Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com> * When taking a chunk from the self seed, immediately return If we were able to take a chunk from the self seed, there is no need to continue looking into the existing file and the store. Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
- Loading branch information
Showing
4 changed files
with
100 additions
and
58 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
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