Christina Ying Wang 341111f1f9 Retry DELTA_APPLY_RETRY_COUNT (3) times during delta apply fail before reverting to regular pull
This prevents an image download error loop where the delta image on the delta server is present,
but some aspect of the delta image or the base image on the device does not match up, causing
the delta to fail to be applied to the base image.

Delta apply errors don't raise status codes as they are thrown from the Engine (although they should),
so if an error with a status code is raised during this time, throw an error to the handler
indicating that the delta should be retried until success. Errors with status codes raised during
this time are largely network related, so falling back to a regular pull won't improve anything.

Upon delta apply errors exceeding DELTA_APPLY_RETRY_COUNT, revert to a regular pull.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2025-02-11 12:19:53 -08:00
..
2024-08-30 10:52:11 -04:00
2024-04-23 19:23:32 -04:00
2024-03-05 15:33:56 -03:00
2024-03-05 15:33:56 -03:00
2024-04-23 19:23:32 -04:00
2024-04-11 18:16:47 -07:00
2025-01-23 23:40:52 -03:00