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.ObjectWe 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 InetAddressAndPortcoordinatorbooleanhasSnapshotsbooleanisGlobalbooleanisIncrementalPreviewKindpreviewKindlongrepairedAt
-
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()KeyspacegetKeyspace()java.util.Set<Range<Token>>getRanges()java.util.Set<TableId>getTableIds()booleanisPreview()voidsetHasSnapshots()java.lang.StringtoString()
-
-
-
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 volatile boolean 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:
toStringin classjava.lang.Object
-
setHasSnapshots
public void setHasSnapshots()
-
-