Skip to content

Commit

Permalink
Bump hardcoded max rollover time, allow overriding default (#766)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Burkholder <[email protected]>
  • Loading branch information
bryanlb and bryanlb authored Feb 8, 2024
1 parent f96ffbd commit de99f40
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
public class RecoveryChunkManager<T> extends ChunkManagerBase<T> {
private static final Logger LOG = LoggerFactory.getLogger(RecoveryChunkManager.class);
// This field controls the maximum amount of time we wait for a rollover to complete.
private static final int MAX_ROLLOVER_MINUTES = 20;
private static final int MAX_ROLLOVER_MINUTES =
Integer.parseInt(System.getProperty("kalDb.recovery.maxRolloverMins", "90"));

private final ChunkFactory<T> recoveryChunkFactory;
private final ChunkRolloverFactory chunkRolloverFactory;
Expand Down

0 comments on commit de99f40

Please sign in to comment.