Package org.apache.cassandra.service
Class ActiveRepairService.ParentRepairSession
- java.lang.Object
-
- org.apache.cassandra.service.ActiveRepairService.ParentRepairSession
-
- Enclosing class:
- ActiveRepairService
public static class ActiveRepairService.ParentRepairSession extends java.lang.Object
We keep a ParentRepairSession around for the duration of the entire repair, for example, on a 256 token vnode rf=3 cluster we would have 768 RepairSession but only one ParentRepairSession. We use the PRS to avoid anticompacting the sstables 768 times, instead we take all repaired ranges at the end of the repair and anticompact once.
-
-
Field Summary
Fields Modifier and Type Field Description InetAddressAndPort
coordinator
java.util.concurrent.atomic.AtomicBoolean
hasSnapshots
boolean
isGlobal
boolean
isIncremental
PreviewKind
previewKind
long
repairedAt
-
Constructor Summary
Constructors Constructor Description ParentRepairSession(InetAddressAndPort coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ColumnFamilyStore>
getColumnFamilyStores()
Keyspace
getKeyspace()
java.util.Set<Range<Token>>
getRanges()
java.util.Set<TableId>
getTableIds()
boolean
isPreview()
boolean
setHasSnapshots()
java.lang.String
toString()
-
-
-
Field Detail
-
isIncremental
public final boolean isIncremental
-
isGlobal
public final boolean isGlobal
-
repairedAt
public final long repairedAt
-
coordinator
public final InetAddressAndPort coordinator
-
previewKind
public final PreviewKind previewKind
-
hasSnapshots
public final java.util.concurrent.atomic.AtomicBoolean hasSnapshots
-
-
Constructor Detail
-
ParentRepairSession
public ParentRepairSession(InetAddressAndPort coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind)
-
-
Method Detail
-
isPreview
public boolean isPreview()
-
getColumnFamilyStores
public java.util.Collection<ColumnFamilyStore> getColumnFamilyStores()
-
getKeyspace
public Keyspace getKeyspace()
-
getTableIds
public java.util.Set<TableId> getTableIds()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setHasSnapshots
public boolean setHasSnapshots()
-
-