-
-
Notifications
You must be signed in to change notification settings - Fork 837
Closed
Description
Problem
The recreate() function in archive.py sometimes does not handle chunk processing correctly.
Issues observed:
- process_items() may skip chunks incorrectly.
- Chunks are not reused efficiently in process_chunks().
- Target creation logic may trigger unnecessary rechunking.
- matcher_add_tagged_dirs() may not exclude caches correctly.
Proposed Fix
- Ensure all items are processed correctly in process_items().
- Reuse chunks when possible to avoid duplication.
- Improve target creation logic for proper rechunkify handling.
- Enhance matcher_add_tagged_dirs() to handle CACHE_TAG_NAME correctly.
Steps to Reproduce
- Create an archive with multiple files and caches.
- Run recreate() with exclude_caches and exclude_if_present flags.
- Observe that some chunks are unnecessarily reprocessed.
Additional Notes
- This change improves efficiency and prevents duplicate chunks.
- Works with both dry_run and actual execution.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels