Package io.deephaven.configuration
Class CheckpointRepairResult
java.lang.Object
io.deephaven.configuration.CheckpointRepairResult
Immutable results of a
checkpoint repair operation.
Contains one entry for every table location that had a problem, along with counts describing the scope of the run.
This result is intended to be portable across legacy and Core+ workers. It uses standard Java values and containers (for example strings, enums, lists, and nested result records) rather than Deephaven-specific types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder forCheckpointRepairResult, accumulating location results and counts as the repair walks the selected tables.static enumThe kind of problem found at a table location.static final recordThe problem found at a single table location, and what was done about it.static enumOutcome for a single table location, used both per-location and (as the maximum by ordinal) as the summary for the whole operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull CheckpointRepairResult.Builderbuilder(boolean force) Create a new builder.@NotNull List<CheckpointRepairResult.LocationResult>Get the results for every location that had a problem.intGet the number of table locations that were inspected, including those without problems.@NotNull CheckpointRepairResult.StatusSummary outcome for the whole operation: the worst per-location status by ordinal, orCheckpointRepairResult.Status.OKwhen no problems were found.intGet the number of tables that were selected and inspected.booleanisForced()Whether the operation was allowed to make changes.booleanWhether any reported location belongs to a historical (System permanent) table, whose locations may be tracked by a metadata index.toString()
-
Method Details
-
getSummaryStatus
Summary outcome for the whole operation: the worst per-location status by ordinal, orCheckpointRepairResult.Status.OKwhen no problems were found.- Returns:
- the summary status
-
getLocationResults
@ScriptApi @NotNull public @NotNull List<CheckpointRepairResult.LocationResult> getLocationResults()Get the results for every location that had a problem. Locations without problems are not reported.- Returns:
- an unmodifiable list of location results, in the order they were encountered
-
getTablesInspected
Get the number of tables that were selected and inspected.- Returns:
- the number of tables inspected
-
getLocationsInspected
Get the number of table locations that were inspected, including those without problems.- Returns:
- the number of locations inspected
-
isMetadataIndexAffected
Whether any reported location belongs to a historical (System permanent) table, whose locations may be tracked by a metadata index. When true, the metadata index for the affected tables should be rebuilt withdhctl metadata updateafter the locations are repaired.- Returns:
- true if any reported location belongs to a System historical table
-
isForced
Whether the operation was allowed to make changes. When false, problems were reported but nothing was modified.- Returns:
- true if repairs were performed
-
toString
-
builder
Create a new builder.- Parameters:
force- whether the operation is allowed to make changes- Returns:
- a new Builder
-