Sorting the files to be archived - this could take a few minutes (Gross Understatement) #40

Closed
opened 2022-11-11 11:57:30 +00:00 by ZAdamMac · 2 comments
ZAdamMac commented 2022-11-11 11:57:30 +00:00 (Migrated from github.com)

Describe the bug
[This was thought solved, then reinvented in 2.2.1]

This step takes a very long time because of the need to generate a hash for each individual file. We need to put some thought into either fixing the look and feel or fixing the performance.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Log/Console Output
Where possible, add the output of the Logs or Console when the problem occurs.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

**Describe the bug** [This was thought solved, then reinvented in 2.2.1] This step takes a very long time because of the need to generate a hash for each individual file. We need to put some thought into either fixing the look and feel or fixing the performance. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Log/Console Output** Where possible, add the output of the Logs or Console when the problem occurs. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
ZAdamMac commented 2023-05-31 21:54:59 +00:00 (Migrated from github.com)

This is actually not a performance issue at all, this is a breaker, and will update the above accordingly.

If any of the files to be backed up exceed the configured block size limit, the program will hang indefinitely inside of unix_build_blocks because the sizes list never reaches a length of 0. This happens entirely silently because the step involved does not make any status prints.

Also debug is broken. I think we have to dust off this project and release a new vision that adresses those two concerns.

I would like to get that done this week.

This is actually not a performance issue at all, this is a breaker, and will update the above accordingly. If any of the files to be backed up exceed the configured block size limit, the program will hang indefinitely inside of `unix_build_blocks` because the `sizes` list never reaches a length of 0. This happens entirely silently because the step involved does not make any status prints. Also debug is broken. I think we have to dust off this project and release a new vision that adresses those two concerns. I would *like* to get that done this week.
ZAdamMac commented 2023-06-02 16:27:38 +00:00 (Migrated from github.com)

Corrected by 46e8c0b.

The issue was, in fact, that size 0 files were not being correctly handled, and thus block 1 was never being marked as "full". This also caused issues because the list sizes was being modified in real time. I changed the logic so that we'd only remove the items which were placed from the sizes list after it has been iterated over fully.

Validated those commits by running a full backup on my actual machine, since the current test suite would not have caught these issues.

Corrected by `46e8c0b`. The issue was, in fact, that size 0 files were not being correctly handled, and thus block 1 was never being marked as "full". This also caused issues because the list `sizes` was being modified in real time. I changed the logic so that we'd only remove the items which were placed from the `sizes` list after it has been iterated over fully. Validated those commits by running a full backup on my actual machine, since the current test suite would not have caught these issues.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zadammac/Tapestry#40
No description provided.