public class org.apache.cassandra.db.commitlog.CommitLog implements org.apache.cassandra.db.commitlog.CommitLogMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.commitlog.CommitLog
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.db.commitlog.CommitLog instance;
descriptor: Lorg/apache/cassandra/db/commitlog/CommitLog;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
final long MAX_MUTATION_SIZE;
descriptor: J
flags: (0x0010) ACC_FINAL
public final org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager segmentManager;
descriptor: Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final org.apache.cassandra.db.commitlog.CommitLogArchiver archiver;
descriptor: Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
final org.apache.cassandra.metrics.CommitLogMetrics metrics;
descriptor: Lorg/apache/cassandra/metrics/CommitLogMetrics;
flags: (0x0010) ACC_FINAL
final org.apache.cassandra.db.commitlog.AbstractCommitLogService executor;
descriptor: Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
flags: (0x0010) ACC_FINAL
volatile org.apache.cassandra.db.commitlog.CommitLog$Configuration configuration;
descriptor: Lorg/apache/cassandra/db/commitlog/CommitLog$Configuration;
flags: (0x0040) ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$config$Config$CommitFailurePolicy;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/commitlog/CommitLog;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.db.commitlog.CommitLog.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/commitlog/CommitLog;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
4: invokestatic org.apache.cassandra.db.commitlog.CommitLog.construct:()Lorg/apache/cassandra/db/commitlog/CommitLog;
putstatic org.apache.cassandra.db.commitlog.CommitLog.instance:Lorg/apache/cassandra/db/commitlog/CommitLog;
return
LocalVariableTable:
Start End Slot Name Signature
private static org.apache.cassandra.db.commitlog.CommitLog construct();
descriptor: ()Lorg/apache/cassandra/db/commitlog/CommitLog;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: new org.apache.cassandra.db.commitlog.CommitLog
dup
invokestatic org.apache.cassandra.db.commitlog.CommitLogArchiver.construct:()Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
invokespecial org.apache.cassandra.db.commitlog.CommitLog.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;)V
astore 0
start local 0 1: getstatic org.apache.cassandra.utils.MBeanWrapper.instance:Lorg/apache/cassandra/utils/MBeanWrapper;
aload 0
ldc "org.apache.cassandra.db:type=Commitlog"
invokeinterface org.apache.cassandra.utils.MBeanWrapper.registerMBean:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.start:()Lorg/apache/cassandra/db/commitlog/CommitLog;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 log Lorg/apache/cassandra/db/commitlog/CommitLog;
void <init>(org.apache.cassandra.db.commitlog.CommitLogArchiver);
descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getMaxMutationSize:()I
i2l
putfield org.apache.cassandra.db.commitlog.CommitLog.MAX_MUTATION_SIZE:J
2: aload 0
new org.apache.cassandra.db.commitlog.CommitLog$Configuration
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogCompression:()Lorg/apache/cassandra/config/ParameterizedClass;
3: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEncryptionContext:()Lorg/apache/cassandra/security/EncryptionContext;
invokespecial org.apache.cassandra.db.commitlog.CommitLog$Configuration.<init>:(Lorg/apache/cassandra/config/ParameterizedClass;Lorg/apache/cassandra/security/EncryptionContext;)V
4: putfield org.apache.cassandra.db.commitlog.CommitLog.configuration:Lorg/apache/cassandra/db/commitlog/CommitLog$Configuration;
5: invokestatic org.apache.cassandra.config.DatabaseDescriptor.createAllDirectories:()V
6: aload 0
aload 1
putfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
7: aload 0
new org.apache.cassandra.metrics.CommitLogMetrics
dup
invokespecial org.apache.cassandra.metrics.CommitLogMetrics.<init>:()V
putfield org.apache.cassandra.db.commitlog.CommitLog.metrics:Lorg/apache/cassandra/metrics/CommitLogMetrics;
8: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogSync:()Lorg/apache/cassandra/config/Config$CommitLogSync;
getstatic org.apache.cassandra.config.Config$CommitLogSync.batch:Lorg/apache/cassandra/config/Config$CommitLogSync;
if_acmpne 10
9: new org.apache.cassandra.db.commitlog.BatchCommitLogService
dup
aload 0
invokespecial org.apache.cassandra.db.commitlog.BatchCommitLogService.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;)V
goto 11
10: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.CommitLogArchiver
StackMap stack: org.apache.cassandra.db.commitlog.CommitLog
new org.apache.cassandra.db.commitlog.PeriodicCommitLogService
dup
aload 0
invokespecial org.apache.cassandra.db.commitlog.PeriodicCommitLogService.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;)V
11: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.CommitLogArchiver
StackMap stack: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.AbstractCommitLogService
putfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
12: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.isCDCEnabled:()Z
ifeq 14
13: new org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC
dup
aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogLocation:()Ljava/lang/String;
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;Ljava/lang/String;)V
goto 15
14: StackMap locals:
StackMap stack: org.apache.cassandra.db.commitlog.CommitLog
new org.apache.cassandra.db.commitlog.CommitLogSegmentManagerStandard
dup
aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogLocation:()Ljava/lang/String;
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegmentManagerStandard.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;Ljava/lang/String;)V
15: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.CommitLogArchiver
StackMap stack: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager
putfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
16: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.metrics:Lorg/apache/cassandra/metrics/CommitLogMetrics;
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.metrics.CommitLogMetrics.attach:(Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)V
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 18 1 archiver Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
archiver
org.apache.cassandra.db.commitlog.CommitLog start();
descriptor: ()Lorg/apache/cassandra/db/commitlog/CommitLog;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.start:()V
1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.start:()V
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public int recoverSegmentsOnDisk();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: invokedynamic accept()Ljava/io/FilenameFilter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/io/File;Ljava/lang/String;)Z
org/apache/cassandra/db/commitlog/CommitLog.lambda$0(Ljava/io/File;Ljava/lang/String;)Z (6)
(Ljava/io/File;Ljava/lang/String;)Z
astore 1
start local 1 1: new java.io.File
dup
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.storageDirectory:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.io.FilenameFilter top int int java.io.File[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
aload 2
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeArchive:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeWaitForArchiving:(Ljava/lang/String;)Z
pop
end local 2 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: getstatic org.apache.cassandra.db.commitlog.CommitLog.$assertionsDisabled:Z
ifne 8
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.archivePending:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 8
new java.lang.AssertionError
dup
ldc "Not all commit log archive tasks were completed before restore"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
8: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.io.FilenameFilter
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive:()V
9: new java.io.File
dup
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.storageDirectory:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
astore 2
start local 2 10: iconst_0
istore 3
start local 3 11: aload 2
arraylength
ifne 14
12: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "No commitlog files found; skipping replay"
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
13: goto 23
14: StackMap locals: java.io.File[] int
StackMap stack:
aload 2
new org.apache.cassandra.db.commitlog.CommitLogSegment$CommitLogSegmentFileComparator
dup
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegment$CommitLogSegmentFileComparator.<init>:()V
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
15: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "Replaying {}"
aload 2
ldc ", "
invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
16: aload 0
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.recoverFiles:([Ljava/io/File;)I
istore 3
17: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "Log replay complete, {} replayed mutations"
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
18: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 22
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.io.FilenameFilter java.io.File[] int top int int java.io.File[]
StackMap stack:
19: aload 7
iload 5
aaload
astore 4
start local 4 20: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
aload 4
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.handleReplayedSegment:(Ljava/io/File;)V
end local 4 21: iinc 5 1
StackMap locals:
StackMap stack:
22: iload 5
iload 6
if_icmplt 19
23: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.io.FilenameFilter java.io.File[] int
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
1 24 1 unmanagedFilesFilter Ljava/io/FilenameFilter;
3 5 2 file Ljava/io/File;
10 24 2 files [Ljava/io/File;
11 24 3 replayed I
20 21 4 f Ljava/io/File;
Exceptions:
throws java.io.IOException
public int recoverFiles(java.io.File[]);
descriptor: ([Ljava/io/File;)I
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.apache.cassandra.db.commitlog.CommitLogReplayer.construct:(Lorg/apache/cassandra/db/commitlog/CommitLog;)Lorg/apache/cassandra/db/commitlog/CommitLogReplayer;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLogReplayer.replayFiles:([Ljava/io/File;)V
2: aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogReplayer.blockForWrites:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 3 1 clogs [Ljava/io/File;
1 3 2 replayer Lorg/apache/cassandra/db/commitlog/CommitLogReplayer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
clogs
public void recoverPath(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.apache.cassandra.db.commitlog.CommitLogReplayer.construct:(Lorg/apache/cassandra/db/commitlog/CommitLog;)Lorg/apache/cassandra/db/commitlog/CommitLogReplayer;
astore 2
start local 2 1: aload 2
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
iconst_0
invokevirtual org.apache.cassandra.db.commitlog.CommitLogReplayer.replayPath:(Ljava/io/File;Z)V
2: aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogReplayer.blockForWrites:()I
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 4 1 path Ljava/lang/String;
1 4 2 replayer Lorg/apache/cassandra/db/commitlog/CommitLogReplayer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
public void recover(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.recoverPath:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 2 1 path Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
public org.apache.cassandra.db.commitlog.CommitLogPosition getCurrentPosition();
descriptor: ()Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getCurrentPosition:()Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public void forceRecycleAllSegments(java.lang.Iterable<java.util.UUID>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
aload 1
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.forceRecycleAll:(Ljava/lang/Iterable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 2 1 droppedCfs Ljava/lang/Iterable<Ljava/util/UUID;>;
Signature: (Ljava/lang/Iterable<Ljava/util/UUID;>;)V
MethodParameters:
Name Flags
droppedCfs
public void forceRecycleAllSegments();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.forceRecycleAll:(Ljava/lang/Iterable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public void sync(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
iload 1
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.sync:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 2 1 flush Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
flush
public void requestExtraSync();
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.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.requestExtraSync:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public org.apache.cassandra.db.commitlog.CommitLogPosition add(org.apache.cassandra.db.Mutation);
descriptor: (Lorg/apache/cassandra/db/Mutation;)Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=14, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.db.commitlog.CommitLog.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
2: getstatic org.apache.cassandra.io.util.DataOutputBuffer.scratchBuffer:Lio/netty/util/concurrent/FastThreadLocal;
invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.util.DataOutputBuffer
astore 4
start local 4 3: getstatic org.apache.cassandra.db.Mutation.serializer:Lorg/apache/cassandra/db/Mutation$MutationSerializer;
aload 1
aload 4
getstatic org.apache.cassandra.net.MessagingService.current_version:I
invokevirtual org.apache.cassandra.db.Mutation$MutationSerializer.serialize:(Lorg/apache/cassandra/db/Mutation;Lorg/apache/cassandra/io/util/DataOutputPlus;I)V
4: aload 4
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.getLength:()I
istore 5
start local 5 5: iload 5
bipush 12
iadd
istore 6
start local 6 6: iload 6
i2l
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.MAX_MUTATION_SIZE:J
lcmp
ifle 11
7: new java.lang.IllegalArgumentException
dup
ldc "Mutation of %s is too large for the maximum size of %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
8: iload 6
i2l
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
dup
iconst_1
9: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.MAX_MUTATION_SIZE:J
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
10: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.Mutation java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBuffer int int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
aload 1
iload 6
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.allocate:(Lorg/apache/cassandra/db/Mutation;I)Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
astore 7
start local 7 12: new java.util.zip.CRC32
dup
invokespecial java.util.zip.CRC32.<init>:()V
astore 8
start local 8 13: aload 7
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.getBuffer:()Ljava/nio/ByteBuffer;
astore 9
start local 9 14: aconst_null
astore 10
aconst_null
astore 11
15: new org.apache.cassandra.io.util.DataOutputBufferFixed
dup
aload 9
invokespecial org.apache.cassandra.io.util.DataOutputBufferFixed.<init>:(Ljava/nio/ByteBuffer;)V
astore 12
start local 12 16: aload 12
iload 5
invokevirtual org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.writeInt:(I)V
17: aload 8
iload 5
invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksumInt:(Ljava/util/zip/Checksum;I)V
18: aload 9
aload 8
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
19: aload 12
aload 4
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.getData:()[B
iconst_0
iload 5
invokevirtual org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.write:([BII)V
20: aload 8
aload 9
aload 9
invokevirtual java.nio.ByteBuffer.position:()I
iload 5
isub
iload 5
invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksum:(Ljava/util/zip/CRC32;Ljava/nio/ByteBuffer;II)V
21: aload 9
aload 8
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
22: aload 12
ifnull 33
aload 12
invokevirtual org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.close:()V
goto 33
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.Mutation java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBuffer int int org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation java.util.zip.CRC32 java.nio.ByteBuffer java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.BufferedDataOutputStreamPlus
StackMap stack: java.lang.Throwable
23: astore 10
aload 12
ifnull 24
aload 12
invokevirtual org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.close:()V
end local 12 StackMap locals:
StackMap stack:
24: aload 10
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 11
aload 10
ifnonnull 26
aload 11
astore 10
goto 27
StackMap locals:
StackMap stack:
26: aload 10
aload 11
if_acmpeq 27
aload 10
aload 11
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 10
athrow
28: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.Mutation java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBuffer int int org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation java.util.zip.CRC32 java.nio.ByteBuffer
StackMap stack: java.io.IOException
astore 10
start local 10 29: new org.apache.cassandra.io.FSWriteError
dup
aload 10
aload 7
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.getSegment:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getPath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
end local 10 30: StackMap locals:
StackMap stack: java.lang.Throwable
astore 13
31: aload 7
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.markWritten:()V
32: aload 13
athrow
33: StackMap locals:
StackMap stack:
aload 7
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.markWritten:()V
34: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
aload 7
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.finishWriteFor:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;)V
35: aload 7
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.getCommitLogPosition:()Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
36: aload 4
ifnull 37
aload 4
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.close:()V
37: StackMap locals:
StackMap stack: org.apache.cassandra.db.commitlog.CommitLogPosition
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.Mutation java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBuffer
StackMap stack: java.lang.Throwable
38: astore 2
39: aload 4
ifnull 40
aload 4
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.close:()V
end local 4 StackMap locals:
StackMap stack:
40: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
41: astore 3
aload 2
ifnonnull 42
aload 3
astore 2
goto 43
StackMap locals:
StackMap stack:
42: aload 2
aload 3
if_acmpeq 43
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
43: aload 2
athrow
44: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog org.apache.cassandra.db.Mutation
StackMap stack: java.io.IOException
astore 2
start local 2 45: new org.apache.cassandra.io.FSWriteError
dup
aload 2
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.allocatingFrom:()Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getPath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 46 1 mutation Lorg/apache/cassandra/db/Mutation;
3 40 4 dob Lorg/apache/cassandra/io/util/DataOutputBuffer;
5 38 5 size I
6 38 6 totalSize I
12 38 7 alloc Lorg/apache/cassandra/db/commitlog/CommitLogSegment$Allocation;
13 38 8 checksum Ljava/util/zip/CRC32;
14 38 9 buffer Ljava/nio/ByteBuffer;
16 24 12 dos Lorg/apache/cassandra/io/util/BufferedDataOutputStreamPlus;
29 30 10 e Ljava/io/IOException;
45 46 2 e Ljava/io/IOException;
Exception table:
from to target type
16 22 23 any
15 25 25 any
14 28 28 Class java.io.IOException
14 30 30 any
3 36 38 any
2 37 41 any
38 41 41 any
1 37 44 Class java.io.IOException
38 44 44 Class java.io.IOException
Exceptions:
throws org.apache.cassandra.exceptions.WriteTimeoutException
MethodParameters:
Name Flags
mutation
public void discardCompletedSegments(java.util.UUID, org.apache.cassandra.db.commitlog.CommitLogPosition, org.apache.cassandra.db.commitlog.CommitLogPosition);
descriptor: (Ljava/util/UUID;Lorg/apache/cassandra/db/commitlog/CommitLogPosition;Lorg/apache/cassandra/db/commitlog/CommitLogPosition;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "discard completed log segments for {}-{}, table {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 1
aastore
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getActiveSegments:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
start local 4 2: goto 17
3: StackMap locals: java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.commitlog.CommitLogSegment
astore 5
start local 5 4: aload 5
aload 1
aload 2
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.markClean:(Ljava/util/UUID;Lorg/apache/cassandra/db/commitlog/CommitLogPosition;Lorg/apache/cassandra/db/commitlog/CommitLogPosition;)V
5: aload 5
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.isUnused:()Z
ifeq 9
6: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "Commit log segment {} is unused"
aload 5
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
7: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
aload 5
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.archiveAndDiscard:(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
8: goto 15
9: StackMap locals: org.apache.cassandra.db.commitlog.CommitLogSegment
StackMap stack:
getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 15
10: getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "Not safe to delete{} commit log segment {}; dirty is {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
11: aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 12
ldc ""
goto 13
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.util.UUID org.apache.cassandra.db.commitlog.CommitLogPosition org.apache.cassandra.db.commitlog.CommitLogPosition java.util.Iterator org.apache.cassandra.db.commitlog.CommitLogSegment
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Object[] java.lang.Object[] int
12: ldc " active"
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.util.UUID org.apache.cassandra.db.commitlog.CommitLogPosition org.apache.cassandra.db.commitlog.CommitLogPosition java.util.Iterator org.apache.cassandra.db.commitlog.CommitLogSegment
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
13: aastore
dup
iconst_1
aload 5
aastore
dup
iconst_2
aload 5
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.dirtyString:()Ljava/lang/String;
aastore
14: invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
aload 5
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.contains:(Lorg/apache/cassandra/db/commitlog/CommitLogPosition;)Z
ifeq 17
16: goto 18
end local 5 17: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 4 18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 19 1 cfId Ljava/util/UUID;
0 19 2 lowerBound Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
0 19 3 upperBound Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
2 18 4 iter Ljava/util/Iterator<Lorg/apache/cassandra/db/commitlog/CommitLogSegment;>;
4 17 5 segment Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
MethodParameters:
Name Flags
cfId final
lowerBound final
upperBound final
public java.lang.String getArchiveCommand();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.archiveCommand:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public java.lang.String getRestoreCommand();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.restoreCommand:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public java.lang.String getRestoreDirectories();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.restoreDirectories:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public long getRestorePointInTime();
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.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.restorePointInTime:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public java.lang.String getRestorePrecision();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.precision:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public java.util.List<java.lang.String> getActiveSegmentNames();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getActiveSegments:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.commitlog.CommitLogSegment
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getName:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
1 6 1 segmentNames Ljava/util/List<Ljava/lang/String;>;
3 4 2 seg Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public java.util.List<java.lang.String> getArchivingSegmentNames();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.archiver:Lorg/apache/cassandra/db/commitlog/CommitLogArchiver;
getfield org.apache.cassandra.db.commitlog.CommitLogArchiver.archivePending:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public long getActiveContentSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getActiveSegments:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog long top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.commitlog.CommitLogSegment
astore 3
start local 3 3: lload 1
aload 3
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.contentSize:()J
ladd
lstore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
1 6 1 size J
3 4 3 seg Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
public long getActiveOnDiskSize();
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.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.onDiskSize:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public java.util.Map<java.lang.String, java.lang.Double> getActiveSegmentCompressionRatios();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.getActiveSegments:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.commitlog.CommitLogSegment
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.getName:()Ljava/lang/String;
dconst_1
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.onDiskSize:()J
l2d
dmul
aload 2
invokevirtual org.apache.cassandra.db.commitlog.CommitLogSegment.contentSize:()J
l2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
1 6 1 segmentRatios Ljava/util/Map<Ljava/lang/String;Ljava/lang/Double;>;
3 4 2 seg Lorg/apache/cassandra/db/commitlog/CommitLogSegment;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/Double;>;
public void shutdownBlocking();
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.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.shutdown:()V
1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.awaitTermination:()V
2: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.shutdown:()V
3: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.awaitTermination:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
Exceptions:
throws java.lang.InterruptedException
public int resetUnsafe(boolean);
descriptor: (Z)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.stopUnsafe:(Z)V
1: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.resetConfiguration:()V
2: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.restartUnsafe:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 3 1 deleteSegments Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
deleteSegments
public void resetConfiguration();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new org.apache.cassandra.db.commitlog.CommitLog$Configuration
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogCompression:()Lorg/apache/cassandra/config/ParameterizedClass;
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEncryptionContext:()Lorg/apache/cassandra/security/EncryptionContext;
invokespecial org.apache.cassandra.db.commitlog.CommitLog$Configuration.<init>:(Lorg/apache/cassandra/config/ParameterizedClass;Lorg/apache/cassandra/security/EncryptionContext;)V
2: putfield org.apache.cassandra.db.commitlog.CommitLog.configuration:Lorg/apache/cassandra/db/commitlog/CommitLog$Configuration;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
public void stopUnsafe(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.shutdown:()V
1: aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.executor:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService.awaitTermination:()V
2: goto 5
3: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 2
start local 2 4: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.CommitLog.segmentManager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
iload 1
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.stopUnsafe:(Z)V
6: invokestatic org.apache.cassandra.db.commitlog.CommitLogSegment.resetReplayLimit:()V
7: invokestatic org.apache.cassandra.config.DatabaseDescriptor.isCDCEnabled:()Z
ifeq 13
iload 1
ifeq 13
8: new java.io.File
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCDCLogLocation:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 12
StackMap locals: org.apache.cassandra.db.commitlog.CommitLog int top int int java.io.File[]
StackMap stack:
9: aload 5
iload 3
aaload
astore 2
start local 2 10: aload 2
invokestatic org.apache.cassandra.io.util.FileUtils.deleteWithConfirm:(Ljava/io/File;)V
end local 2 11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 4
if_icmplt 9
13: StackMap locals: org.apache.cassandra.db.commitlog.CommitLog int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
0 14 1 deleteSegments Z
4 5 2 e Ljava/lang/InterruptedException;
10 11 2 f Ljava/io/File;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
MethodParameters:
Name Flags
deleteSegments
public int restartUnsafe();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.start:()Lorg/apache/cassandra/db/commitlog/CommitLog;
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.recoverSegmentsOnDisk:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/CommitLog;
Exceptions:
throws java.io.IOException
public static boolean handleCommitError(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectCommitLogThrowable:(Ljava/lang/Throwable;)V
1: invokestatic org.apache.cassandra.db.commitlog.CommitLog.$SWITCH_TABLE$org$apache$cassandra$config$Config$CommitFailurePolicy:()[I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitFailurePolicy:()Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$CommitFailurePolicy.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 2
2: 3
3: 5
4: 2
default: 7
}
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.stopTransports:()V
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
ldc "%s. Commit disk failure policy is %s; terminating thread"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitFailurePolicy:()Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.commitlog.CommitLog.logger:Lorg/slf4j/Logger;
aload 0
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitFailurePolicy:()Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 message Ljava/lang/String;
0 8 1 t Ljava/lang/Throwable;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
message
t
static int[] $SWITCH_TABLE$org$apache$cassandra$config$Config$CommitFailurePolicy();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.db.commitlog.CommitLog.$SWITCH_TABLE$org$apache$cassandra$config$Config$CommitFailurePolicy:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.config.Config$CommitFailurePolicy.values:()[Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.config.Config$CommitFailurePolicy.die:Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$CommitFailurePolicy.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.config.Config$CommitFailurePolicy.ignore:Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$CommitFailurePolicy.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.config.Config$CommitFailurePolicy.stop:Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$CommitFailurePolicy.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.config.Config$CommitFailurePolicy.stop_commit:Lorg/apache/cassandra/config/Config$CommitFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$CommitFailurePolicy.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic org.apache.cassandra.db.commitlog.CommitLog.$SWITCH_TABLE$org$apache$cassandra$config$Config$CommitFailurePolicy:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
private static boolean lambda$0(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.cassandra.db.commitlog.CommitLogDescriptor.isValid:(Ljava/lang/String;)Z
ifeq 1
aload 1
invokestatic org.apache.cassandra.db.commitlog.CommitLogSegment.shouldReplay:(Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 dir Ljava/io/File;
0 3 1 name Ljava/lang/String;
}
SourceFile: "CommitLog.java"
NestMembers:
org.apache.cassandra.db.commitlog.CommitLog$Configuration
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final CommitFailurePolicy = org.apache.cassandra.config.Config$CommitFailurePolicy of org.apache.cassandra.config.Config
public final CommitLogSync = org.apache.cassandra.config.Config$CommitLogSync of org.apache.cassandra.config.Config
public MutationSerializer = org.apache.cassandra.db.Mutation$MutationSerializer of org.apache.cassandra.db.Mutation
public final Configuration = org.apache.cassandra.db.commitlog.CommitLog$Configuration of org.apache.cassandra.db.commitlog.CommitLog
protected Allocation = org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation of org.apache.cassandra.db.commitlog.CommitLogSegment
public CommitLogSegmentFileComparator = org.apache.cassandra.db.commitlog.CommitLogSegment$CommitLogSegmentFileComparator of org.apache.cassandra.db.commitlog.CommitLogSegment