Skip to content

Conversation

@mariash
Copy link
Member

@mariash mariash commented Aug 15, 2022

What is this change about?

When one of the dependencies fails to be downloaded cancel the rest of them and wait for goroutines to complete.

What problem it is trying to solve?

Stop leaking disk space and goroutines.

What is the impact if the change is not made?

On errors we leak disk space in cached downloader since we forget about the goroutine and not tracking the files they download. Canceling the download will result in error that will cause the deletion of the file in cacheddownloader.

How should this change be described in diego-release release notes?

Cancel downloads of all dependencies when downloading of one of them fails.

Please provide any contextual information.

Relevant issue: cloudfoundry/diego-release#558

Thank you!

@mariash mariash force-pushed the cancel-goroutines-cacheddownloader branch from 1e303b7 to 88569cb Compare August 30, 2022 17:03
Stop leaking disk space and goroutines. When one of the dependecies
faisl to be downloaded cancel the rest of them and wait for goroutines
to complete.
@mariash mariash force-pushed the cancel-goroutines-cacheddownloader branch from 88569cb to c9ae4d6 Compare August 30, 2022 17:19
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