Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "State transition loop detected" when retrying status update.
This solves the issue where retrying the status report many times increases the state loop counter too far and we detect it as a state loop, even though Mender would actually have finished a few states later. This will cause real state loops to take much longer to detect, but they will *eventually* be detected. Real state loops are quite rare, since they can only happen either if the system is constantly rebooting spontaneously, or if an ArtifactVerifyRollbackReboot keeps returning failure. The spontaneous reboot flow diagram in the Update Module documentation is a good guide for understanding how it can happen. Changelog: Title Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
- Loading branch information
Showing
2 changed files
with
185 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters