SHA256 checks fail with MemoryError

Bug #1898564 reported by Laurent Sesquès
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Fix Released
Medium
Unassigned

Bug Description

This was reported in lp:1770049, but that one is more about silent fails and disks filling, not precisely MemoryError.

When verifying a distrib, the sha256 checksums for its files are computed using a 1G buffer:
https://bazaar.launchpad.net/~ubuntu-repository-cache-charmers/ubuntu-repository-cache/trunk/view/head:/lib/ubuntu_repository_cache/metadata_sync.py#L514

On machines with not enough memory, this fails with MemoryError and breaks the sync.

We should significantly lower this value.

Related branches

Changed in ubuntu-repository-cache:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.