public class org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC extends org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC
super_class: org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
{
static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker cdcSizeTracker;
descriptor: Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.commitlog.CommitLog, java.lang.String);
descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLog;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;Ljava/lang/String;)V
1: aload 0
new org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker
dup
aload 0
new java.io.File
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCLogLocation:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;Ljava/io/File;)V
putfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
0 3 1 commitLog Lorg/apache/cassandra/db/commitlog/CommitLog;
0 3 2 storageDirectory Ljava/lang/String;
MethodParameters:
Name Flags
commitLog final
storageDirectory
void start();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.start:()V
1: aload 0
invokespecial org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.start:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
public void discard(org.apache.cassandra.db.commitlog.CommitLogSegment, boolean);
descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLogSegment;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.close:()V
1: aload 0
aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.onDiskSize:()J
lneg
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.addSize:(J)V
2: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.processDiscardedSegment:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
3: aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getCDCState:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;
getstatic org.apache.cassandra.db.commitlog.CommitLogSegment$CDCState.CONTAINS:Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;
if_acmpne 5
4: aload 1
getfield org.apache.cassandra.db.commitlog.CommitLogSegment.logFile:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
new java.lang.StringBuilder
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCLogLocation:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
getfield org.apache.cassandra.db.commitlog.CommitLogSegment.logFile:Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.io.util.FileUtils.renameWithConfirm:(Ljava/lang/String;Ljava/lang/String;)V
goto 7
5: StackMap locals:
StackMap stack:
iload 2
ifeq 7
6: aload 1
getfield org.apache.cassandra.db.commitlog.CommitLogSegment.logFile:Ljava/io/File;
invokestatic org.apache.cassandra.io.util.FileUtils.deleteWithConfirm:(Ljava/io/File;)V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
0 8 1 segment Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
0 8 2 delete Z
MethodParameters:
Name Flags
segment
delete
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.shutdown:()V
1: aload 0
invokespecial org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.shutdown:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
public org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation allocate(org.apache.cassandra.db.Mutation, int);
descriptor: (Lorg/apache/cassandra/db/Mutation;I)Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.allocatingFrom:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.throwIfForbidden:(Lorg/apache/cassandra/db/Mutation;Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
2: goto 6
start local 4 3: StackMap locals: org.apache.cassandra.db.commitlog.CommitLogSegment org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation
StackMap stack:
aload 0
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.advanceAllocatingFrom:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
4: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.allocatingFrom:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
astore 3
5: aload 0
aload 1
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.throwIfForbidden:(Lorg/apache/cassandra/db/Mutation;Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
end local 4 6: StackMap locals:
StackMap stack:
aload 3
aload 1
iload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.allocate:(Lorg/apache/cassandra/db/Mutation;I)Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
dup
astore 4
start local 4 7: ifnull 3
8: aload 1
invokevirtual org.apache.cassandra.db.Mutation.trackedByCDC:()Z
ifeq 10
9: aload 3
getstatic org.apache.cassandra.db.commitlog.CommitLogSegment$CDCState.CONTAINS:Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.setCDCState:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;)V
10: StackMap locals: org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
0 11 1 mutation Lorg/apache/cassandra/db/Mutation;
0 11 2 size I
1 11 3 segment Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
3 6 4 alloc Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
7 11 4 alloc Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
Exceptions:
throws org.apache.cassandra.exceptions.WriteTimeoutException
MethodParameters:
Name Flags
mutation
size
private void throwIfForbidden(org.apache.cassandra.db.Mutation, org.apache.cassandra.db.commitlog.CommitLogSegment);
descriptor: (Lorg/apache/cassandra/db/Mutation;Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.apache.cassandra.db.Mutation.trackedByCDC:()Z
ifeq 10
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getCDCState:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;
getstatic org.apache.cassandra.db.commitlog.CommitLogSegment$CDCState.FORBIDDEN:Lorg/apache/cassandra/db/commitlog/CommitLogSegment$CDCState;
if_acmpne 10
1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.submitOverflowSizeRecalculation:()V
2: getstatic org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.logger:Lorg/slf4j/Logger;
3: getstatic org.apache.cassandra.utils.NoSpamLogger$Level.WARN:Lorg/apache/cassandra/utils/NoSpamLogger$Level;
4: ldc 10
5: getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
6: ldc "Rejecting Mutation containing CDC-enabled table. Free up space in {}."
iconst_1
anewarray java.lang.Object
dup
iconst_0
7: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCLogLocation:()Ljava/lang/String;
aastore
8: invokestatic org.apache.cassandra.utils.NoSpamLogger.log:(Lorg/slf4j/Logger;Lorg/apache/cassandra/utils/NoSpamLogger$Level;JLjava/util/concurrent/TimeUnit;Ljava/lang/String;[Ljava/lang/Object;)Z
pop
9: new org.apache.cassandra.exceptions.WriteTimeoutException
dup
getstatic org.apache.cassandra.db.WriteType.CDC:Lorg/apache/cassandra/db/WriteType;
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
iconst_0
iconst_1
invokespecial org.apache.cassandra.exceptions.WriteTimeoutException.<init>:(Lorg/apache/cassandra/db/WriteType;Lorg/apache/cassandra/db/ConsistencyLevel;II)V
athrow
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
0 11 1 mutation Lorg/apache/cassandra/db/Mutation;
0 11 2 segment Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
Exceptions:
throws org.apache.cassandra.exceptions.WriteTimeoutException
MethodParameters:
Name Flags
mutation
segment
void handleReplayedSegment(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.logger:Lorg/slf4j/Logger;
ldc "Moving (Unopened) segment {} to cdc_raw directory after replay"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
new java.lang.StringBuilder
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCLogLocation:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.io.util.FileUtils.renameWithConfirm:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
aload 1
invokevirtual java.io.File.length:()J
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.addFlushedSize:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
0 4 1 file Ljava/io/File;
MethodParameters:
Name Flags
file final
public org.apache.cassandra.db.commitlog.CommitLogSegment createSegment();
descriptor: ()Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.commitLog:Lorg/apache/cassandra/db/commitlog/CommitLog;
aload 0
invokestatic org.apache.cassandra.db.commitlog.CommitLogSegment.createSegment:(Lorg/apache/cassandra/db/commitlog/CommitLog;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.processNewSegment:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
1 3 1 segment Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
public long updateCDCTotalSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.submitOverflowSizeRecalculation:()V
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCDiskCheckInterval:()I
bipush 10
iadd
i2l
invokestatic java.lang.Thread.sleep:(J)V
2: goto 4
3: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.cdcSizeTracker:Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC$CDCSizeTracker;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker.totalCDCSizeOnDisk:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDC;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "CommitLogSegmentManagerCDC.java"
NestMembers:
org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker
InnerClasses:
protected Allocation = org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation of org.apache.cassandra.db.commitlog.CommitLogSegment
public final CDCState = org.apache.cassandra.db.commitlog.CommitLogSegment$CDCState of org.apache.cassandra.db.commitlog.CommitLogSegment
private CDCSizeTracker = org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC$CDCSizeTracker of org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC
public final Level = org.apache.cassandra.utils.NoSpamLogger$Level of org.apache.cassandra.utils.NoSpamLogger