Change checkpointing retry count to 2

Changing the checkpointing retry count to 2 resolves
issues of apex sessions being reverted if a hard reboot takes
place during a userspace reboot. Previously, a revert would
occur based on what stage of the boot sequence a hard reboot
took place in, now the revert will not occur at all.

Bug: 148270009
Test: atest ApexRollbackTests
Change-Id: Idce2d60f0a25f01a7d081420c937e5c9cec12e5d
This commit is contained in:
Gavin Corkery
2020-02-04 08:50:53 +00:00
parent b629d69db0
commit ab2544c10b

View File

@@ -1246,7 +1246,7 @@ public class StagingManager {
try {
IStorageManager storageManager = PackageHelper.getStorageManager();
if (storageManager.supportsCheckpoint()) {
storageManager.startCheckpoint(1);
storageManager.startCheckpoint(2);
}
} catch (Exception e) {
// Failed to get hold of StorageManager