private CompactionPolicySwitchInfo recoverCompactionPolicySwitchInfo(File file, BlobStoreStats blobStoreStats) {
    try {
      return objectMapper.readValue(file, CompactionPolicySwitchInfo.class);
    } catch (IOException e) {
      logger.error("Could not deserialize file : {} into {} Object", file, CompactionPolicySwitchInfo.class.getName());
      blobStoreStats.getMetrics().blobStoreRecoverCompactionPolicySwitchInfoErrorCount.inc();
      return new CompactionPolicySwitchInfo(INIT_COMPACT_ALL_TIME, false);
    }
  }
Recover the {@link CompactionPolicySwitchInfo} from backup file.
{
  "nextRoundIsCompactAllPolicy" : false,
  "lastCompactAllTime" : 1593492962651
}
@param file the backup file stores {@link CompactionPolicySwitchInfo}
ambry-store/src/main/java/com/github/ambry/store/HybridCompactionPolicy.java