package repair
- Alphabetic
- By Inheritance
- repair
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class RepairContext(str: String255) extends LengthLimitedStringWrapper with PrettyPrinting with Product with Serializable
Make tracecontext mandatory throughout repair operations.
Make tracecontext mandatory throughout repair operations.
- str
the w3c serialized tracing information of the trace parent The W3C standard specifies that the traceparent is length-limited -> thus it is safe to limit it to 255 characters However, Tracestates aren't limited, so the repair context should be saved as a blob (like com.digitalasset.canton.tracing.TraceContext) if we want to use it for repair contexts
- final class RepairService extends NamedLogging with FlagCloseable with HasCloseContext
Implements the repair commands.
Implements the repair commands. Repair commands work only if the participant has disconnected from the affected domains. Every individual repair commands is executed transactionally, i.e., either all its effects are applied or none. This is achieved in the same way as for request processing:
- A request counter is allocated for the repair request (namely the clean request head) and marked as com.digitalasset.canton.participant.protocol.RequestJournal.RequestState.Pending. The repair request's timestamp is the timestamp where processing starts again upon reconnection to the domain.
- All repair effects are persisted to the stores using the repair request counter.
- The clean request prehead is advanced to the repair request counter. This commits the changes. If multiple domains are involved, transactionality is ensured via the com.digitalasset.canton.resource.TransactionalStoreUpdate mechanism.
If anything goes wrong before advancing the clean request prehead, the already persisted data will be cleaned up upon the next repair request or reconnection to the domain.
- sealed trait RepairServiceError extends Product with Serializable with BaseCantonError
Value Members
- object RepairContext extends LengthLimitedStringWrapperCompanion[String255, RepairContext] with Serializable
- object RepairService
- object RepairServiceError extends RepairServiceErrorGroup with Serializable