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
include files without blockset in broken files (issue #4988) #4990
base: master
Are you sure you want to change the base?
Conversation
If I understand this change correctly, it was caused because empty files/folders don't have a blockset, but can still be broken due to metadata. I guess the BROKEN_FILE_IDS subquery correctly finds the files, but they were discarded in the external query? Did you check all usages that they can handle |
Thanks for fast response, all. I'll stay pretty quiet since I think your SQL is better than mine. My higher-level wonder was how well purge-broken-files purges a folder that's found bad. |
@Jojo-1000 @ts678 |
@gpatel-fr |
Purge needs to figure it out too. Stack might look like:
duplicati/Duplicati/Library/Main/Operation/ListBrokenFilesHandler.cs Lines 52 to 55 in d0f1498
duplicati/Duplicati/Library/Main/Operation/PurgeBrokenFilesHandler.cs Lines 51 to 57 in d0f1498
I'm not sure how well it was working, but I updated the issue with output after remembering --console-log-level must be raised, otherwise all the useful details get tossed. This is an unpleasant regression (IMO), introduced by the change of the logging code. |
also change the message in purge-broken-files about last fileset to a warning.
I have changed the message log level to a Warning. It seems appropriate because asking for a purge that would remove the last fileset without specifying that one wants to do it is something of a mistake (while not being quite an error). |
This pull request has been mentioned on Duplicati. There might be relevant details there: https://forum.duplicati.com/t/find-and-purge-have-different-results/16994/3 |
No description provided.