final class org.apache.cassandra.db.lifecycle.LogFile implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.db.lifecycle.LogFile
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static java.lang.String EXT;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static char SEP;
descriptor: C
flags: (0x0008) ACC_STATIC
static java.util.regex.Pattern FILE_REGEX;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0008) ACC_STATIC
private final org.apache.cassandra.db.lifecycle.LogReplicaSet replicas;
descriptor: Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.LinkedHashSet<org.apache.cassandra.db.lifecycle.LogRecord> records;
descriptor: Ljava/util/LinkedHashSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedHashSet<Lorg/apache/cassandra/db/lifecycle/LogRecord;>;
private final org.apache.cassandra.db.compaction.OperationType type;
descriptor: Lorg/apache/cassandra/db/compaction/OperationType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.UUID id;
descriptor: Ljava/util/UUID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/lifecycle/LogFile;
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.lifecycle.LogFile.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/lifecycle/LogFile;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.lifecycle.LogFile.logger:Lorg/slf4j/Logger;
4: ldc ".log"
putstatic org.apache.cassandra.db.lifecycle.LogFile.EXT:Ljava/lang/String;
5: bipush 95
putstatic org.apache.cassandra.db.lifecycle.LogFile.SEP:C
6: ldc "^(.{2})_txn_(.*)_(.*)%s$"
iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic org.apache.cassandra.db.lifecycle.LogFile.EXT:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.db.lifecycle.LogFile.FILE_REGEX:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
static org.apache.cassandra.db.lifecycle.LogFile make(java.io.File);
descriptor: (Ljava/io/File;)Lorg/apache/cassandra/db/lifecycle/LogFile;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 0
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.db.lifecycle.LogFile.make:(Ljava/lang/String;Ljava/util/List;)Lorg/apache/cassandra/db/lifecycle/LogFile;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 logReplica Ljava/io/File;
MethodParameters:
Name Flags
logReplica
static org.apache.cassandra.db.lifecycle.LogFile make(java.lang.String, java.util.List<java.io.File>);
descriptor: (Ljava/lang/String;Ljava/util/List;)Lorg/apache/cassandra/db/lifecycle/LogFile;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.db.lifecycle.LogFile.FILE_REGEX:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 1: aload 2
invokevirtual java.util.regex.Matcher.matches:()Z
istore 3
start local 3 2: getstatic org.apache.cassandra.db.lifecycle.LogFile.$assertionsDisabled:Z
ifne 4
iload 3
ifeq 3
aload 2
invokevirtual java.util.regex.Matcher.groupCount:()I
iconst_3
if_icmpeq 4
StackMap locals: java.util.regex.Matcher int
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 2
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.apache.cassandra.db.compaction.OperationType.fromFileName:(Ljava/lang/String;)Lorg/apache/cassandra/db/compaction/OperationType;
astore 4
start local 4 5: aload 2
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.util.UUID.fromString:(Ljava/lang/String;)Ljava/util/UUID;
astore 5
start local 5 6: new org.apache.cassandra.db.lifecycle.LogFile
dup
aload 4
aload 5
aload 1
invokespecial org.apache.cassandra.db.lifecycle.LogFile.<init>:(Lorg/apache/cassandra/db/compaction/OperationType;Ljava/util/UUID;Ljava/util/List;)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fileName Ljava/lang/String;
0 7 1 logReplicas Ljava/util/List<Ljava/io/File;>;
1 7 2 matcher Ljava/util/regex/Matcher;
2 7 3 matched Z
5 7 4 operationType Lorg/apache/cassandra/db/compaction/OperationType;
6 7 5 id Ljava/util/UUID;
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;)Lorg/apache/cassandra/db/lifecycle/LogFile;
MethodParameters:
Name Flags
fileName
logReplicas
java.lang.Throwable syncDirectory(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.syncDirectory:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 1 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
org.apache.cassandra.db.compaction.OperationType type();
descriptor: ()Lorg/apache/cassandra/db/compaction/OperationType;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.type:Lorg/apache/cassandra/db/compaction/OperationType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
java.util.UUID id();
descriptor: ()Ljava/util/UUID;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.id:Ljava/util/UUID;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
java.lang.Throwable removeUnfinishedLeftovers(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.syncDirectory:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokestatic org.apache.cassandra.utils.Throwables.maybeFail:(Ljava/lang/Throwable;)V
1: aload 0
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.committed:()Z
ifeq 2
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
goto 3
StackMap locals:
StackMap stack: org.apache.cassandra.db.lifecycle.LogFile
2: getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.ADD:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
StackMap locals: org.apache.cassandra.db.lifecycle.LogFile java.lang.Throwable
StackMap stack: org.apache.cassandra.db.lifecycle.LogFile org.apache.cassandra.db.lifecycle.LogRecord$Type
3: invokevirtual org.apache.cassandra.db.lifecycle.LogFile.deleteFilesForRecordsOfType:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)V
4: aload 0
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.syncDirectory:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokestatic org.apache.cassandra.utils.Throwables.maybeFail:(Ljava/lang/Throwable;)V
5: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.delete:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
6: goto 9
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 8: aload 1
aload 2
invokestatic org.apache.cassandra.utils.Throwables.merge:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
end local 2 9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 10 1 accumulate Ljava/lang/Throwable;
8 9 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 6 7 Class java.lang.Throwable
MethodParameters:
Name Flags
accumulate
static boolean isLogFile(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.db.lifecycle.LogFile.FILE_REGEX:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 file Ljava/io/File;
MethodParameters:
Name Flags
file
void <init>(org.apache.cassandra.db.compaction.OperationType, java.util.UUID, java.util.List<java.io.File>);
descriptor: (Lorg/apache/cassandra/db/compaction/OperationType;Ljava/util/UUID;Ljava/util/List;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.db.lifecycle.LogFile.<init>:(Lorg/apache/cassandra/db/compaction/OperationType;Ljava/util/UUID;)V
1: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.addReplicas:(Ljava/util/List;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 3 1 type Lorg/apache/cassandra/db/compaction/OperationType;
0 3 2 id Ljava/util/UUID;
0 3 3 replicas Ljava/util/List<Ljava/io/File;>;
Signature: (Lorg/apache/cassandra/db/compaction/OperationType;Ljava/util/UUID;Ljava/util/List<Ljava/io/File;>;)V
MethodParameters:
Name Flags
type
id
replicas
void <init>(org.apache.cassandra.db.compaction.OperationType, java.util.UUID);
descriptor: (Lorg/apache/cassandra/db/compaction/OperationType;Ljava/util/UUID;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.db.lifecycle.LogReplicaSet
dup
invokespecial org.apache.cassandra.db.lifecycle.LogReplicaSet.<init>:()V
putfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
2: aload 0
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
3: aload 0
aload 1
putfield org.apache.cassandra.db.lifecycle.LogFile.type:Lorg/apache/cassandra/db/compaction/OperationType;
4: aload 0
aload 2
putfield org.apache.cassandra.db.lifecycle.LogFile.id:Ljava/util/UUID;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 6 1 type Lorg/apache/cassandra/db/compaction/OperationType;
0 6 2 id Ljava/util/UUID;
MethodParameters:
Name Flags
type
id
boolean verify();
descriptor: ()Z
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.clear:()V
1: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.readRecords:(Ljava/util/Set;)Z
ifne 4
2: getstatic org.apache.cassandra.db.lifecycle.LogFile.logger:Lorg/slf4j/Logger;
ldc "Failed to read records for transaction log {}"
aload 0
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokedynamic accept()Ljava/util/function/Consumer;
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/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogFile.verifyRecord(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
invokevirtual java.util.LinkedHashSet.forEach:(Ljava/util/function/Consumer;)V
5: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogRecord.isInvalidOrPartial()Z (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
astore 1
start local 1 6: aload 1
invokevirtual java.util.Optional.isPresent:()Z
ifne 8
7: iconst_1
ireturn
8: StackMap locals: java.util.Optional
StackMap stack:
aload 1
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.lifecycle.LogRecord
astore 2
start local 2 9: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getLastRecord:()Lorg/apache/cassandra/db/lifecycle/LogRecord;
aload 2
if_acmpeq 12
10: aload 0
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.setErrorInReplicas:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
pop
11: iconst_0
ireturn
12: StackMap locals: org.apache.cassandra.db.lifecycle.LogRecord
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.stream:()Ljava/util/stream/Stream;
aload 2
invokedynamic test(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogFile.lambda$2(Lorg/apache/cassandra/db/lifecycle/LogRecord;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokedynamic accept()Ljava/util/function/Consumer;
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/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogFile.verifyRecordWithCorruptedLastRecord(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
13: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.stream:()Ljava/util/stream/Stream;
14: aload 2
invokedynamic test(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogFile.lambda$4(Lorg/apache/cassandra/db/lifecycle/LogRecord;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
15: invokedynamic test()Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogRecord.isInvalid()Z (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
16: aload 0
invokedynamic apply(Lorg/apache/cassandra/db/lifecycle/LogFile;)Ljava/util/function/Function;
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/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/db/lifecycle/LogFile.setErrorInReplicas(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord; (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
17: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 20
18: aload 0
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.setErrorInReplicas:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
pop
19: iconst_0
ireturn
20: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.lifecycle.LogFile.logger:Lorg/slf4j/Logger;
ldc "Last record of transaction {} is corrupt or incomplete [{}], but all previous records match state on disk; continuing"
21: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.id:Ljava/util/UUID;
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.error:()Ljava/lang/String;
22: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
23: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
6 24 1 firstInvalid Ljava/util/Optional<Lorg/apache/cassandra/db/lifecycle/LogRecord;>;
9 24 2 failedOn Lorg/apache/cassandra/db/lifecycle/LogRecord;
org.apache.cassandra.db.lifecycle.LogRecord setErrorInReplicas(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.setErrorInReplicas:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 2 1 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
record
static void verifyRecord(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.checksum:J
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.computeChecksum:()J
lcmp
ifeq 7
1: aload 0
ldc "Invalid checksum for sstable [%s]: [%d] should have been [%d]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.fileName:()Ljava/lang/String;
aastore
dup
iconst_1
3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.checksum:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
4: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.computeChecksum:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.setError:(Ljava/lang/String;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
pop
6: return
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.type:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 9
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.withExistingFiles:()Lorg/apache/cassandra/db/lifecycle/LogRecord;
putfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
10: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.updateTime:J
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
getfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
getfield org.apache.cassandra.db.lifecycle.LogRecord.updateTime:J
lcmp
ifeq 16
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
getfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
getfield org.apache.cassandra.db.lifecycle.LogRecord.updateTime:J
lconst_0
lcmp
ifle 16
11: aload 0
ldc "Unexpected files detected for sstable [%s]: last update time [%tT] should have been [%tT]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
12: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.fileName:()Ljava/lang/String;
aastore
dup
iconst_1
13: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
getfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
getfield org.apache.cassandra.db.lifecycle.LogRecord.updateTime:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
14: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.updateTime:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.setError:(Ljava/lang/String;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
pop
16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
record
static void verifyRecordWithCorruptedLastRecord(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.type:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpne 6
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
getfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
getfield org.apache.cassandra.db.lifecycle.LogRecord.numFiles:I
aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.numFiles:I
if_icmpge 6
1: aload 0
ldc "Incomplete fileset detected for sstable [%s]: number of files [%d] should have been [%d]."
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.fileName:()Ljava/lang/String;
aastore
dup
iconst_1
3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.status:Lorg/apache/cassandra/db/lifecycle/LogRecord$Status;
getfield org.apache.cassandra.db.lifecycle.LogRecord$Status.onDiskRecord:Lorg/apache/cassandra/db/lifecycle/LogRecord;
getfield org.apache.cassandra.db.lifecycle.LogRecord.numFiles:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
4: aload 0
getfield org.apache.cassandra.db.lifecycle.LogRecord.numFiles:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.setError:(Ljava/lang/String;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
pop
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
record
void commit();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic org.apache.cassandra.db.lifecycle.LogRecord.makeCommit:(J)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.addRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
void abort();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic org.apache.cassandra.db.lifecycle.LogRecord.makeAbort:(J)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.addRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
private boolean isLastRecordValidWithType(org.apache.cassandra.db.lifecycle.LogRecord$Type);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getLastRecord:()Lorg/apache/cassandra/db/lifecycle/LogRecord;
astore 2
start local 2 1: aload 2
ifnull 5
2: aload 2
getfield org.apache.cassandra.db.lifecycle.LogRecord.type:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
aload 1
if_acmpne 5
3: aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.isValid:()Z
ifeq 5
4: iconst_1
ireturn
StackMap locals: org.apache.cassandra.db.lifecycle.LogRecord
StackMap stack:
5: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 6 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
1 6 2 lastRecord Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
type
boolean committed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.COMMIT:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.isLastRecordValidWithType:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
boolean aborted();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.ABORT:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.isLastRecordValidWithType:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
boolean completed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.committed:()Z
ifne 1
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.aborted:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
void add(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.makeRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.addRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 2 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 2 2 table Lorg/apache/cassandra/io/sstable/SSTable;
MethodParameters:
Name Flags
type
table
public void addAll(org.apache.cassandra.db.lifecycle.LogRecord$Type, java.lang.Iterable<org.apache.cassandra.io.sstable.format.SSTableReader>);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.makeRecords:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable;)Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: org.apache.cassandra.db.lifecycle.LogFile org.apache.cassandra.db.lifecycle.LogRecord$Type java.lang.Iterable top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.lifecycle.LogRecord
astore 3
start local 3 2: aload 0
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.addRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 5 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 5 2 toBulkAdd Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
2 3 3 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
Signature: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;)V
MethodParameters:
Name Flags
type
toBulkAdd
java.util.Map<org.apache.cassandra.io.sstable.SSTable, org.apache.cassandra.db.lifecycle.LogRecord> makeRecords(org.apache.cassandra.db.lifecycle.LogRecord$Type, java.lang.Iterable<org.apache.cassandra.io.sstable.format.SSTableReader>);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable;)Ljava/util/Map;
flags: (0x0000)
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.db.lifecycle.LogFile.$assertionsDisabled:Z
ifne 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.ADD:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: org.apache.cassandra.db.lifecycle.LogFile org.apache.cassandra.db.lifecycle.LogRecord$Type java.lang.Iterable top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 3
start local 3 3: aload 3
getfield org.apache.cassandra.io.sstable.format.SSTableReader.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
astore 5
start local 5 4: iconst_3
anewarray java.io.Serializable
dup
iconst_0
aload 5
aastore
dup
iconst_1
getstatic java.io.File.separator:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getFileName:()Ljava/lang/String;
aastore
invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;)Ljava/lang/String;
astore 6
start local 6 5: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 5
aload 6
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.maybeCreateReplica:(Ljava/io/File;Ljava/lang/String;Ljava/util/Set;)V
end local 6 end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 1
aload 2
invokestatic org.apache.cassandra.db.lifecycle.LogRecord.make:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable;)Ljava/util/Map;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 8 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 8 2 tables Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
3 6 3 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
4 6 5 directory Ljava/io/File;
5 6 6 fileName Ljava/lang/String;
Signature: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;)Ljava/util/Map<Lorg/apache/cassandra/io/sstable/SSTable;Lorg/apache/cassandra/db/lifecycle/LogRecord;>;
MethodParameters:
Name Flags
type
tables
private org.apache.cassandra.db.lifecycle.LogRecord makeRecord(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.db.lifecycle.LogFile.$assertionsDisabled:Z
ifne 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.ADD:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.io.sstable.SSTable.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
astore 3
start local 3 2: iconst_3
anewarray java.io.Serializable
dup
iconst_0
aload 3
aastore
dup
iconst_1
getstatic java.io.File.separator:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getFileName:()Ljava/lang/String;
aastore
invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 3
aload 4
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.maybeCreateReplica:(Ljava/io/File;Ljava/lang/String;Ljava/util/Set;)V
4: aload 1
aload 2
invokestatic org.apache.cassandra.db.lifecycle.LogRecord.make:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 5 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 5 2 table Lorg/apache/cassandra/io/sstable/SSTable;
2 5 3 directory Ljava/io/File;
3 5 4 fileName Ljava/lang/String;
MethodParameters:
Name Flags
type
table
private org.apache.cassandra.db.lifecycle.LogRecord makeRecord(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.db.lifecycle.LogFile.$assertionsDisabled:Z
ifne 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.ADD:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
aload 1
getstatic org.apache.cassandra.db.lifecycle.LogRecord$Type.REMOVE:Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.io.sstable.SSTable.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
astore 4
start local 4 2: iconst_3
anewarray java.io.Serializable
dup
iconst_0
aload 4
aastore
dup
iconst_1
getstatic java.io.File.separator:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getFileName:()Ljava/lang/String;
aastore
invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 4
aload 5
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.maybeCreateReplica:(Ljava/io/File;Ljava/lang/String;Ljava/util/Set;)V
4: aload 3
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.asType:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 5 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 5 2 table Lorg/apache/cassandra/io/sstable/SSTable;
0 5 3 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
2 5 4 directory Ljava/io/File;
3 5 5 fileName Ljava/lang/String;
MethodParameters:
Name Flags
type
table
record
void addRecord(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.completed:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Transaction already completed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aload 1
invokevirtual java.util.LinkedHashSet.contains:(Ljava/lang/Object;)Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "Record already exists"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.append:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
5: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aload 1
invokevirtual java.util.LinkedHashSet.add:(Ljava/lang/Object;)Z
ifne 7
6: new java.lang.IllegalStateException
dup
ldc "Failed to add record"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 8 1 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
record
void remove(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.makeRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
astore 3
start local 3 1: getstatic org.apache.cassandra.db.lifecycle.LogFile.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aload 3
invokevirtual java.util.LinkedHashSet.contains:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
ldc "[%s] is not tracked by %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.id:Ljava/util/UUID;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: org.apache.cassandra.db.lifecycle.LogRecord
StackMap stack:
aload 3
invokestatic org.apache.cassandra.db.lifecycle.LogFile.deleteRecordFiles:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aload 3
invokevirtual java.util.LinkedHashSet.remove:(Ljava/lang/Object;)Z
pop
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 5 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 5 2 table Lorg/apache/cassandra/io/sstable/SSTable;
1 5 3 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
type
table
boolean contains(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Z
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.makeRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.contains:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 1 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 1 2 table Lorg/apache/cassandra/io/sstable/SSTable;
MethodParameters:
Name Flags
type
table
boolean contains(org.apache.cassandra.db.lifecycle.LogRecord$Type, org.apache.cassandra.io.sstable.SSTable, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
aload 1
aload 2
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.makeRecord:(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;Lorg/apache/cassandra/io/sstable/SSTable;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Lorg/apache/cassandra/db/lifecycle/LogRecord;
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.contains:(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 1 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
0 1 2 sstable Lorg/apache/cassandra/io/sstable/SSTable;
0 1 3 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
type
sstable
record
private boolean contains(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aload 1
invokevirtual java.util.LinkedHashSet.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 1 1 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
MethodParameters:
Name Flags
record
void deleteFilesForRecordsOfType(org.apache.cassandra.db.lifecycle.LogRecord$Type);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.stream:()Ljava/util/stream/Stream;
1: aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic test(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogRecord$Type.matches(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokedynamic accept()Ljava/util/function/Consumer;
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/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogFile.deleteRecordFiles(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.clear:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 5 1 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
MethodParameters:
Name Flags
type
private static void deleteRecordFiles(org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.getExistingFiles:()Ljava/util/List;
astore 1
start local 1 1: aload 1
invokedynamic compare()Ljava/util/Comparator;
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/lang/Object;Ljava/lang/Object;)I
org/apache/cassandra/db/lifecycle/LogFile.lambda$9(Ljava/io/File;Ljava/io/File;)I (6)
(Ljava/io/File;Ljava/io/File;)I
invokeinterface java.util.List.sort:(Ljava/util/Comparator;)V
2: aload 1
invokedynamic accept()Ljava/util/function/Consumer;
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/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogTransaction.delete(Ljava/io/File;)V (6)
(Ljava/io/File;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
1 4 1 files Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
record
java.util.Map<org.apache.cassandra.db.lifecycle.LogRecord, java.util.Set<java.io.File>> getFilesOfType(java.nio.file.Path, java.util.NavigableSet<java.io.File>, org.apache.cassandra.db.lifecycle.LogRecord$Type);
descriptor: (Ljava/nio/file/Path;Ljava/util/NavigableSet;Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Ljava/util/Map;
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 1: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.stream:()Ljava/util/stream/Stream;
2: aload 3
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic test(Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogRecord$Type.matches(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: invokedynamic test()Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogRecord.isValid()Z (5)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: aload 1
invokedynamic test(Ljava/nio/file/Path;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogFile.lambda$13(Ljava/nio/file/Path;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: aload 4
aload 2
invokedynamic accept(Ljava/util/Map;Ljava/util/NavigableSet;)Ljava/util/function/Consumer;
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/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogFile.lambda$14(Ljava/util/Map;Ljava/util/NavigableSet;Lorg/apache/cassandra/db/lifecycle/LogRecord;)V (6)
(Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
6: 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 7 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 7 1 folder Ljava/nio/file/Path;
0 7 2 files Ljava/util/NavigableSet<Ljava/io/File;>;
0 7 3 type Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;
1 7 4 ret Ljava/util/Map<Lorg/apache/cassandra/db/lifecycle/LogRecord;Ljava/util/Set<Ljava/io/File;>;>;
Signature: (Ljava/nio/file/Path;Ljava/util/NavigableSet<Ljava/io/File;>;Lorg/apache/cassandra/db/lifecycle/LogRecord$Type;)Ljava/util/Map<Lorg/apache/cassandra/db/lifecycle/LogRecord;Ljava/util/Set<Ljava/io/File;>;>;
MethodParameters:
Name Flags
folder
files
type
org.apache.cassandra.db.lifecycle.LogRecord getLastRecord();
descriptor: ()Lorg/apache/cassandra/db/lifecycle/LogRecord;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
aconst_null
invokestatic com.google.common.collect.Iterables.getLast:(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.lifecycle.LogRecord
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
private static java.util.Set<java.io.File> getRecordFiles(java.util.NavigableSet<java.io.File>, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Ljava/util/NavigableSet;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.fileName:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokeinterface java.util.NavigableSet.stream:()Ljava/util/stream/Stream;
aload 2
invokedynamic test(Ljava/lang/String;)Ljava/util/function/Predicate;
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/lang/Object;)Z
org/apache/cassandra/db/lifecycle/LogFile.lambda$15(Ljava/lang/String;Ljava/io/File;)Z (6)
(Ljava/io/File;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 files Ljava/util/NavigableSet<Ljava/io/File;>;
0 2 1 record Lorg/apache/cassandra/db/lifecycle/LogRecord;
1 2 2 fileName Ljava/lang/String;
Signature: (Ljava/util/NavigableSet<Ljava/io/File;>;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Ljava/util/Set<Ljava/io/File;>;
MethodParameters:
Name Flags
files
record
boolean exists();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.exists:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
public void close();
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.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.toString:(Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
public java.lang.String toString(boolean);
descriptor: (Z)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 2
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 2
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.getFileName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 2
ldc " in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 2
aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.getDirectories:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 2
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: iload 1
ifeq 11
7: aload 2
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 2
ldc "Files and contents follow:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 2
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
aload 2
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.printContentsWithAnyErrors:(Ljava/lang/StringBuilder;)V
11: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
0 12 1 showContents Z
1 12 2 str Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
showContents
java.util.List<java.io.File> getFiles();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.getFiles:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
Signature: ()Ljava/util/List<Ljava/io/File;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
java.util.List<java.lang.String> getFilePaths();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.replicas:Lorg/apache/cassandra/db/lifecycle/LogReplicaSet;
invokevirtual org.apache.cassandra.db.lifecycle.LogReplicaSet.getFilePaths:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
private java.lang.String getFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: bipush 8
anewarray java.lang.Object
dup
iconst_0
getstatic org.apache.cassandra.io.sstable.format.big.BigFormat.latestVersion:Lorg/apache/cassandra/io/sstable/format/Version;
aastore
dup
iconst_1
1: getstatic org.apache.cassandra.db.lifecycle.LogFile.SEP:C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_2
2: ldc "txn"
aastore
dup
iconst_3
3: getstatic org.apache.cassandra.db.lifecycle.LogFile.SEP:C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_4
4: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.type:Lorg/apache/cassandra/db/compaction/OperationType;
getfield org.apache.cassandra.db.compaction.OperationType.fileName:Ljava/lang/String;
aastore
dup
iconst_5
5: getstatic org.apache.cassandra.db.lifecycle.LogFile.SEP:C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
bipush 6
6: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.id:Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
dup
bipush 7
7: getstatic org.apache.cassandra.db.lifecycle.LogFile.EXT:Ljava/lang/String;
aastore
8: invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogFile.records:Ljava/util/LinkedHashSet;
invokevirtual java.util.LinkedHashSet.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/lifecycle/LogFile;
private static boolean lambda$2(org.apache.cassandra.db.lifecycle.LogRecord, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
if_acmpeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 r Lorg/apache/cassandra/db/lifecycle/LogRecord;
private static boolean lambda$4(org.apache.cassandra.db.lifecycle.LogRecord, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LogRecord;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
if_acmpeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 r Lorg/apache/cassandra/db/lifecycle/LogRecord;
private static int lambda$9(java.io.File, java.io.File);
descriptor: (Ljava/io/File;Ljava/io/File;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.lastModified:()J
aload 1
invokevirtual java.io.File.lastModified:()J
invokestatic java.lang.Long.compare:(JJ)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 f1 Ljava/io/File;
0 1 1 f2 Ljava/io/File;
private static boolean lambda$13(java.nio.file.Path, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Ljava/nio/file/Path;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual org.apache.cassandra.db.lifecycle.LogRecord.isInFolder:(Ljava/nio/file/Path;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 r Lorg/apache/cassandra/db/lifecycle/LogRecord;
private static void lambda$14(java.util.Map, java.util.NavigableSet, org.apache.cassandra.db.lifecycle.LogRecord);
descriptor: (Ljava/util/Map;Ljava/util/NavigableSet;Lorg/apache/cassandra/db/lifecycle/LogRecord;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 2 0: aload 0
aload 2
aload 1
aload 2
invokestatic org.apache.cassandra.db.lifecycle.LogFile.getRecordFiles:(Ljava/util/NavigableSet;Lorg/apache/cassandra/db/lifecycle/LogRecord;)Ljava/util/Set;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 r Lorg/apache/cassandra/db/lifecycle/LogRecord;
private static boolean lambda$15(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 f Ljava/io/File;
}
SourceFile: "LogFile.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Status = org.apache.cassandra.db.lifecycle.LogRecord$Status of org.apache.cassandra.db.lifecycle.LogRecord
public final Type = org.apache.cassandra.db.lifecycle.LogRecord$Type of org.apache.cassandra.db.lifecycle.LogRecord