[Bug]: Database on network share isn't being fully updated #36
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App version
0.1.7
Platform
Windows
Steps to reproduce
Expected behavior
Actual behavior
Using a thumbnail size of 384px on a directory with 3,500+ images, the saved database is less than 2mb.
Opening the application and directory a second time results in effectively a full initial scan and thumbnail generation
Additional context
Wasn't tested on Linux, can't confirm it's limited Windows only.
Fix implemented on
0.1.17/issue-36-network-db-syncRoot cause: Network workspaces used metadata-only SQLite export to the share on close (DR-015). The share-side
.bulk_image_organizer.dbstayed small (no thumbnail BLOBs), and reopening could not restore a full cache from the share. Worker DB handles were also synced before scan workers were fully stopped on exit, which could prevent reliable WAL checkpointing.Changes:
import_share_metadata.mod_date+filesizestill match the source file.Verification:
tests/test_workspace_cache.py,tests/test_image_cache_stale.py, focused scanner/DB tests, and./scripts/smoke-ui-exit.sh.Ready for Windows validation on a UNC/mapped-drive library with 3,500+ images — the share
.bulk_image_organizer.dbshould grow to reflect thumbnail BLOBs after the first close/sync.Resolution (0.1.18 — branch
0.1.17/issue-36-network-db-sync)Network workspace cache sync now uses full SQLite file copy (WAL checkpoint + chunked OS copy) instead of metadata-only export, so the share-side
.bulk_image_organizer.dbincludes thumbnail BLOBs and reopening restores the cache.Sync triggers: workspace close, directory switch, successful post-scan, and 5-minute background timer while a network folder is open (when Settings → Workspace sync is enabled).
On open: newer share DB is copied to the local cache; legacy metadata-only share files are merged when no thumbnail BLOBs are present.
Related fixes on this branch:
COALESCE); grid rehydrates cached thumbs after preload.entry.stat, no per-fileresolve).Closing as fixed in upcoming PR to
main.