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

Check serialized temporary files memory is non-empty #1043

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

jan-kolarik
Copy link
Member

Based on the #1001, adding a check after the toml serialization of temporary files memory to make sure the result is not an empty file. Such a file would not be parsable when loading from the disk afterwards.

Closes #1001.

Based on the user report, adding a check after the toml serialization of temporary files memory to make sure the result is not an empty file. Such a file would be not parsable when loading from the disk afterwards.
@j-mracek
Copy link
Contributor

LGTM, only asking about a comment for the test

@j-mracek j-mracek self-assigned this Nov 27, 2023
Although this scenario is not expected, make sure it is not crashing.
@jan-kolarik jan-kolarik force-pushed the jkolarik/temp-files-empty-check branch from 5102046 to de29b50 Compare November 27, 2023 11:04
@j-mracek j-mracek added this pull request to the merge queue Nov 27, 2023
Merged via the queue into main with commit e5dcfe8 Nov 27, 2023
15 checks passed
@j-mracek j-mracek deleted the jkolarik/temp-files-empty-check branch November 27, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Crash because of empty /var/cache/libdnf5/temporary_files.toml file?
2 participants