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

Fix disk usage bug #4473

Merged
merged 6 commits into from
May 23, 2023
Merged

Fix disk usage bug #4473

merged 6 commits into from
May 23, 2023

Conversation

AndrewJGaut
Copy link
Contributor

Fix for #4472. This just reverts to using disk computation from scratch while I look for the issue with the prior change.

@AndrewJGaut AndrewJGaut requested a review from epicfaace May 17, 2023 21:39
}
if self.get_bundle_state(bundle.uuid) != State.FAILED:
Copy link
Contributor Author

@AndrewJGaut AndrewJGaut May 18, 2023

Choose a reason for hiding this comment

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

Note: This was another bug that occurred, but this time due to the PR that tracks disk usage while a bundle is running. Basically, in bundles.py, the bundle is failed during the UPLOADING_RESULTS phase here if the user doesn't have enough disk quota to upload the results. When this would happen, the worker isn't updated on the failure status, so it just goes and hits the bundle checkin and finalizes the bundle, and in transition_bundle_finished the bundle is marked as FAILED because it has a failure_message in its metdata from the code in bundles.py. But, when that bundle checkin occurs, the data size is updated again which is WRONG because the actual size of the bundle ON THE SERVER (or Azure blob) is zero even though on the worker it still has a real size (until it gets deleted later)

@AndrewJGaut AndrewJGaut marked this pull request as ready for review May 22, 2023 04:41
@AndrewJGaut AndrewJGaut merged commit d2f13d9 into master May 23, 2023
@AndrewJGaut AndrewJGaut deleted the fix/4472-disk-usage-bug-revert branch May 23, 2023 16:57
@epicfaace epicfaace mentioned this pull request Jun 14, 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