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

DiskCache used for maven project gets corrupted sometimes #7978

Open
netomi opened this issue Dec 1, 2023 · 0 comments · May be fixed by #7980
Open

DiskCache used for maven project gets corrupted sometimes #7978

netomi opened this issue Dec 1, 2023 · 0 comments · May be fixed by #7980
Labels
analyzer About the analyzer tool bug Issues that are considered to be bugs

Comments

@netomi
Copy link

netomi commented Dec 1, 2023

Running ort multiple times in a row for a project occasionally results in a corrupted cache:

DiskLruCache /home/tn/.ort/cache/analyzer/maven/remote-artifacts is corrupt: unexpected journal line: READ oREAD io-quarkus_quarkus-resteasy_jar_3-5-2__repo-eclipse-org__h-00000, removing

leading to the cache being discarded and all artifacts are fetched again.

This looks very much like this problem: JakeWharton/DiskLruCache#52

Once I added proper closing of the cache, the problem was going away, will prepare a PR.

@sschuberth sschuberth added bug Issues that are considered to be bugs analyzer About the analyzer tool labels Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool bug Issues that are considered to be bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants