heroku/WAL-E — Issue #34: Sentinel creation broke in 0.5.11
Author: tsilen
Created: 2012-03-05 21:57:53+00:00
State: open

The fix for boto 2.2.2+ in 0.5.11 (Rewind file descriptor to not truncate data with Boto 2.2.2+ ) added an assertion to put_uri_file() in s3_worker. The method is used in s3_operator to upload sentinel files and that operation now hits the assertion because the StringIO is not rewinded. Unfortunately there's also a catch-all exception handler that silently passes all exceptions, thus the assertion was never raised. Fetching or listing backups seem not to work without the sentinel files.

Adding sentinel_content.seek(0) does the trick.