public class org.apache.cassandra.db.Directories
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.Directories
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 java.lang.String BACKUPS_SUBDIR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "backups"
public static final java.lang.String SNAPSHOT_SUBDIR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "snapshots"
public static final java.lang.String TMP_SUBDIR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "tmp"
public static final java.lang.String SECONDARY_INDEX_NAME_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "."
public static final org.apache.cassandra.db.Directories$DataDirectory[] dataDirectories;
descriptor: [Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final org.apache.cassandra.config.CFMetaData metadata;
descriptor: Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.db.Directories$DataDirectory[] paths;
descriptor: [Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File[] dataPaths;
descriptor: [Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=2, args_size=0
0: ldc Lorg/apache/cassandra/db/Directories;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAllDataFileLocations:()[Ljava/lang/String;
astore 0
start local 0 2: aload 0
arraylength
anewarray org.apache.cassandra.db.Directories$DataDirectory
putstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
3: iconst_0
istore 1
start local 1 4: goto 7
5: StackMap locals: java.lang.String[] int
StackMap stack:
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
iload 1
new org.apache.cassandra.db.Directories$DataDirectory
dup
new java.io.File
dup
aload 0
iload 1
aaload
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.apache.cassandra.db.Directories$DataDirectory.<init>:(Ljava/io/File;)V
aastore
6: iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
arraylength
if_icmplt 5
end local 1 end local 0 8: return
LocalVariableTable:
Start End Slot Name Signature
2 8 0 locations [Ljava/lang/String;
4 8 1 i I
public static boolean verifyFullPermissions(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.isDirectory:()Z
ifne 3
1: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Not a directory {}"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.cassandra.db.Directories$FileAction.X:Lorg/apache/cassandra/db/Directories$FileAction;
invokestatic org.apache.cassandra.db.Directories$FileAction.hasPrivilege:(Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileAction;)Z
ifne 6
4: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Doesn't have execute permissions for {} directory"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.cassandra.db.Directories$FileAction.R:Lorg/apache/cassandra/db/Directories$FileAction;
invokestatic org.apache.cassandra.db.Directories$FileAction.hasPrivilege:(Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileAction;)Z
ifne 9
7: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Doesn't have read permissions for {} directory"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.exists:()Z
ifeq 12
aload 0
getstatic org.apache.cassandra.db.Directories$FileAction.W:Lorg/apache/cassandra/db/Directories$FileAction;
invokestatic org.apache.cassandra.db.Directories$FileAction.hasPrivilege:(Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileAction;)Z
ifne 12
10: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Doesn't have write permissions for {} directory"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 dir Ljava/io/File;
0 13 1 dataDir Ljava/lang/String;
MethodParameters:
Name Flags
dir
dataDir
public void <init>(org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
invokespecial org.apache.cassandra.db.Directories.<init>:(Lorg/apache/cassandra/config/CFMetaData;[Lorg/apache/cassandra/db/Directories$DataDirectory;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/Directories;
0 2 1 metadata Lorg/apache/cassandra/config/CFMetaData;
MethodParameters:
Name Flags
metadata final
public void <init>(org.apache.cassandra.config.CFMetaData, java.util.Collection<org.apache.cassandra.db.Directories$DataDirectory>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 2
invokeinterface java.util.Collection.size:()I
anewarray org.apache.cassandra.db.Directories$DataDirectory
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectory[]
invokespecial org.apache.cassandra.db.Directories.<init>:(Lorg/apache/cassandra/config/CFMetaData;[Lorg/apache/cassandra/db/Directories$DataDirectory;)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/Directories;
0 2 1 metadata Lorg/apache/cassandra/config/CFMetaData;
0 2 2 paths Ljava/util/Collection<Lorg/apache/cassandra/db/Directories$DataDirectory;>;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection<Lorg/apache/cassandra/db/Directories$DataDirectory;>;)V
MethodParameters:
Name Flags
metadata final
paths
public void <init>(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.db.Directories$DataDirectory[]);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;[Lorg/apache/cassandra/db/Directories$DataDirectory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=19, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.db.Directories.metadata:Lorg/apache/cassandra/config/CFMetaData;
2: aload 0
aload 2
putfield org.apache.cassandra.db.Directories.paths:[Lorg/apache/cassandra/db/Directories$DataDirectory;
3: aload 1
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/util/UUID;)Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
astore 3
start local 3 4: aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 5: iload 4
iflt 6
aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 7
StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int
StackMap stack:
6: aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: astore 5
start local 5 8: iload 4
iflt 9
aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
iload 4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 10
StackMap locals: java.lang.String
StackMap stack:
9: aconst_null
StackMap locals:
StackMap stack: java.lang.String
10: astore 6
start local 6 11: aload 0
aload 2
arraylength
anewarray java.io.File
putfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
12: iconst_2
anewarray java.lang.String
dup
iconst_0
aload 1
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aastore
dup
iconst_1
aload 5
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 13: iconst_0
istore 8
start local 8 14: goto 17
15: StackMap locals: java.lang.String java.lang.String int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
iload 8
new java.io.File
dup
aload 2
iload 8
aaload
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
aload 7
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
aastore
16: iinc 8 1
StackMap locals:
StackMap stack:
17: iload 8
aload 2
arraylength
if_icmplt 15
end local 8 18: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
new org.apache.cassandra.db.Directories$1
dup
aload 0
invokespecial org.apache.cassandra.db.Directories$1.<init>:(Lorg/apache/cassandra/db/Directories;)V
invokestatic com.google.common.collect.Iterables.any:(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z
istore 8
start local 8 19: iload 8
ifne 26
20: iconst_2
anewarray java.lang.String
dup
iconst_0
aload 1
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aastore
dup
iconst_1
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 21: iconst_0
istore 10
start local 10 22: goto 25
23: StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int java.lang.String int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
iload 10
new java.io.File
dup
aload 2
iload 10
aaload
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
aload 9
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
aastore
24: iinc 10 1
StackMap locals:
StackMap stack:
25: iload 10
aload 2
arraylength
if_icmplt 23
end local 10 end local 9 26: StackMap locals:
StackMap stack:
aload 6
ifnull 32
27: iconst_0
istore 9
start local 9 28: goto 31
29: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
iload 9
new java.io.File
dup
aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
iload 9
aaload
aload 6
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
aastore
30: iinc 9 1
StackMap locals:
StackMap stack:
31: iload 9
aload 2
arraylength
if_icmplt 29
end local 9 32: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 40
StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int top int int java.io.File[]
StackMap stack:
33: aload 12
iload 10
aaload
astore 9
start local 9 34: aload 9
invokestatic org.apache.cassandra.io.util.FileUtils.createDirectory:(Ljava/io/File;)V
35: goto 39
36: StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int java.io.File int int java.io.File[]
StackMap stack: org.apache.cassandra.io.FSError
astore 13
start local 13 37: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Failed to create {} directory"
aload 9
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
38: aload 13
invokestatic org.apache.cassandra.io.util.FileUtils.handleFSError:(Lorg/apache/cassandra/io/FSError;)V
end local 13 end local 9 39: StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int top int int java.io.File[]
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
40: iload 10
iload 11
if_icmplt 33
41: aload 6
ifnull 54
42: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 53
StackMap locals:
StackMap stack:
43: aload 12
iload 10
aaload
astore 9
start local 9 44: aload 9
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
new org.apache.cassandra.db.Directories$2
dup
aload 0
aload 1
invokespecial org.apache.cassandra.db.Directories$2.<init>:(Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/config/CFMetaData;)V
invokevirtual java.io.File.listFiles:(Ljava/io/FileFilter;)[Ljava/io/File;
astore 13
start local 13 45: aload 13
dup
astore 17
arraylength
istore 16
iconst_0
istore 15
goto 51
StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int java.io.File int int java.io.File[] java.io.File[] top int int java.io.File[]
StackMap stack:
46: aload 17
iload 15
aaload
astore 14
start local 14 47: new java.io.File
dup
aload 9
aload 14
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 18
start local 18 48: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Moving index file {} to {}"
aload 14
aload 18
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
49: aload 14
aload 18
invokestatic org.apache.cassandra.io.util.FileUtils.renameWithConfirm:(Ljava/io/File;Ljava/io/File;)V
end local 18 end local 14 50: iinc 15 1
StackMap locals:
StackMap stack:
51: iload 15
iload 16
if_icmplt 46
end local 13 end local 9 52: iinc 10 1
StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int top int int java.io.File[]
StackMap stack:
53: iload 10
iload 11
if_icmplt 43
54: StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.config.CFMetaData org.apache.cassandra.db.Directories$DataDirectory[] java.lang.String int java.lang.String java.lang.String java.lang.String int
StackMap stack:
return
end local 8 end local 7 end local 6 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 55 0 this Lorg/apache/cassandra/db/Directories;
0 55 1 metadata Lorg/apache/cassandra/config/CFMetaData;
0 55 2 paths [Lorg/apache/cassandra/db/Directories$DataDirectory;
4 55 3 cfId Ljava/lang/String;
5 55 4 idx I
8 55 5 cfName Ljava/lang/String;
11 55 6 indexNameWithDot Ljava/lang/String;
13 55 7 oldSSTableRelativePath Ljava/lang/String;
14 18 8 i I
19 55 8 olderDirectoryExists Z
21 26 9 newSSTableRelativePath Ljava/lang/String;
22 26 10 i I
28 32 9 i I
34 39 9 dir Ljava/io/File;
37 39 13 e Lorg/apache/cassandra/io/FSError;
44 52 9 dataPath Ljava/io/File;
45 52 13 indexFiles [Ljava/io/File;
47 50 14 indexFile Ljava/io/File;
48 50 18 destFile Ljava/io/File;
Exception table:
from to target type
34 35 36 Class org.apache.cassandra.io.FSError
MethodParameters:
Name Flags
metadata final
paths
public java.io.File getLocationForDisk(org.apache.cassandra.db.Directories$DataDirectory);
descriptor: (Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
1: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.db.Directories$DataDirectory top int int java.io.File[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aload 1
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: StackMap locals: org.apache.cassandra.db.Directories org.apache.cassandra.db.Directories$DataDirectory
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/Directories;
0 8 1 dataDirectory Lorg/apache/cassandra/db/Directories$DataDirectory;
3 5 2 dir Ljava/io/File;
MethodParameters:
Name Flags
dataDirectory
public org.apache.cassandra.db.Directories$DataDirectory getDataDirectoryForFile(java.io.File);
descriptor: (Ljava/io/File;)Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
1: aload 0
getfield org.apache.cassandra.db.Directories.paths:[Lorg/apache/cassandra/db/Directories$DataDirectory;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.Directories java.io.File top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aload 2
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: StackMap locals: org.apache.cassandra.db.Directories java.io.File
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/Directories;
0 8 1 directory Ljava/io/File;
3 5 2 dataDirectory Lorg/apache/cassandra/db/Directories$DataDirectory;
MethodParameters:
Name Flags
directory
public org.apache.cassandra.io.sstable.Descriptor find(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/io/sstable/Descriptor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: org.apache.cassandra.db.Directories java.lang.String top int int java.io.File[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: new java.io.File
dup
aload 2
aload 1
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifeq 4
3: aload 2
aload 1
invokestatic org.apache.cassandra.io.sstable.Descriptor.fromFilename:(Ljava/io/File;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair;
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.Descriptor
areturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/Directories;
0 7 1 filename Ljava/lang/String;
2 4 2 dir Ljava/io/File;
MethodParameters:
Name Flags
filename
public java.io.File getDirectoryForNewSSTables();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc -1
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocationAsFile:(J)Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/Directories;
public java.io.File getWriteableLocationAsFile(long);
descriptor: (J)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 0
lload 1
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocation:(J)Lorg/apache/cassandra/db/Directories$DataDirectory;
invokevirtual org.apache.cassandra.db.Directories.getLocationForDisk:(Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/io/File;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new org.apache.cassandra.io.FSWriteError
dup
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "No configured data directory contains enough space to write "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
ldc ""
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
3: StackMap locals: java.io.File
StackMap stack:
aload 3
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/Directories;
0 4 1 writeSize J
1 4 3 location Ljava/io/File;
MethodParameters:
Name Flags
writeSize
public java.io.File getTemporaryWriteableDirectoryAsFile(long);
descriptor: (J)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 0
lload 1
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocation:(J)Lorg/apache/cassandra/db/Directories$DataDirectory;
invokevirtual org.apache.cassandra.db.Directories.getLocationForDisk:(Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/io/File;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.io.File
StackMap stack:
new java.io.File
dup
aload 3
ldc "tmp"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/Directories;
0 4 1 writeSize J
1 4 3 location Ljava/io/File;
MethodParameters:
Name Flags
writeSize
public void removeTemporaryDirectories();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 7
StackMap locals: org.apache.cassandra.db.Directories top int int java.io.File[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: new java.io.File
dup
aload 1
ldc "tmp"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 5
start local 5 3: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 6
4: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Removing temporary directory {}"
aload 5
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
5: aload 5
invokestatic org.apache.cassandra.io.util.FileUtils.deleteRecursive:(Ljava/io/File;)V
end local 5 end local 1 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 3
if_icmplt 1
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/Directories;
2 6 1 dataDir Ljava/io/File;
3 6 5 tmpDir Ljava/io/File;
public org.apache.cassandra.db.Directories$DataDirectory getWriteableLocation(long);
descriptor: (J)Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: lconst_0
lstore 4
start local 4 2: iconst_0
istore 6
start local 6 3: aload 0
getfield org.apache.cassandra.db.Directories.paths:[Lorg/apache/cassandra/db/Directories$DataDirectory;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 16
StackMap locals: org.apache.cassandra.db.Directories long java.util.List long int top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
4: aload 10
iload 8
aaload
astore 7
start local 7 5: aload 0
aload 7
invokevirtual org.apache.cassandra.db.Directories.getLocationForDisk:(Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/io/File;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.isUnwritable:(Ljava/io/File;)Z
ifeq 8
6: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "removing blacklisted candidate {}"
aload 7
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
7: goto 15
8: StackMap locals: org.apache.cassandra.db.Directories long java.util.List long int org.apache.cassandra.db.Directories$DataDirectory int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
new org.apache.cassandra.db.Directories$DataDirectoryCandidate
dup
aload 7
invokespecial org.apache.cassandra.db.Directories$DataDirectoryCandidate.<init>:(Lorg/apache/cassandra/db/Directories$DataDirectory;)V
astore 11
start local 11 9: aload 11
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.availableSpace:J
lload 1
lcmp
ifge 13
10: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "removing candidate {}, usable={}, requested={}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 11
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.dataDirectory:Lorg/apache/cassandra/db/Directories$DataDirectory;
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
aastore
dup
iconst_1
aload 11
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.availableSpace:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
11: iconst_1
istore 6
12: goto 15
13: StackMap locals: org.apache.cassandra.db.Directories$DataDirectoryCandidate
StackMap stack:
aload 3
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: lload 4
aload 11
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.availableSpace:J
ladd
lstore 4
end local 11 end local 7 15: StackMap locals: org.apache.cassandra.db.Directories long java.util.List long int top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
16: iload 8
iload 9
if_icmplt 4
17: aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 21
18: iload 6
ifeq 20
19: new org.apache.cassandra.io.FSDiskFullWriteError
dup
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Insufficient disk space to write "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
ldc ""
invokespecial org.apache.cassandra.io.FSDiskFullWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
20: StackMap locals: org.apache.cassandra.db.Directories long java.util.List long int
StackMap stack:
new org.apache.cassandra.io.FSWriteError
dup
new java.io.IOException
dup
ldc "All configured data directories have been blacklisted as unwritable for erroring out"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
ldc ""
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 23
22: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectoryCandidate
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.dataDirectory:Lorg/apache/cassandra/db/Directories$DataDirectory;
areturn
23: StackMap locals:
StackMap stack:
aload 3
lload 4
invokestatic org.apache.cassandra.db.Directories.sortWriteableCandidates:(Ljava/util/List;J)V
24: aload 3
invokestatic org.apache.cassandra.db.Directories.pickWriteableDirectory:(Ljava/util/List;)Lorg/apache/cassandra/db/Directories$DataDirectory;
areturn
end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/cassandra/db/Directories;
0 25 1 writeSize J
1 25 3 candidates Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;>;
2 25 4 totalAvailable J
3 25 6 tooBig Z
5 15 7 dataDir Lorg/apache/cassandra/db/Directories$DataDirectory;
9 15 11 candidate Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;
MethodParameters:
Name Flags
writeSize
static org.apache.cassandra.db.Directories$DataDirectory pickWriteableDirectory(java.util.List<org.apache.cassandra.db.Directories$DataDirectoryCandidate>);
descriptor: (Ljava/util/List;)Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: invokestatic java.util.concurrent.ThreadLocalRandom.current:()Ljava/util/concurrent/ThreadLocalRandom;
invokevirtual java.util.concurrent.ThreadLocalRandom.nextDouble:()D
dstore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: java.util.List double top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectoryCandidate
astore 3
start local 3 3: dload 1
aload 3
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.perc:D
dsub
dstore 1
4: dload 1
dconst_0
dcmpg
ifgt 6
5: aload 3
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.dataDirectory:Lorg/apache/cassandra/db/Directories$DataDirectory;
areturn
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectoryCandidate
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.dataDirectory:Lorg/apache/cassandra/db/Directories$DataDirectory;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 candidates Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;>;
1 8 1 rnd D
3 6 3 candidate Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;
Signature: (Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;>;)Lorg/apache/cassandra/db/Directories$DataDirectory;
MethodParameters:
Name Flags
candidates
static void sortWriteableCandidates(java.util.List<org.apache.cassandra.db.Directories$DataDirectoryCandidate>, );
descriptor: (Ljava/util/List;J)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: java.util.List long top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectoryCandidate
astore 3
start local 3 2: aload 3
lload 1
invokevirtual org.apache.cassandra.db.Directories$DataDirectoryCandidate.calcFreePerc:(J)V
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 candidates Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;>;
0 6 1 totalAvailable J
2 3 3 candidate Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;
Signature: (Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;>;J)V
MethodParameters:
Name Flags
candidates
totalAvailable
public boolean hasAvailableDiskSpace(long, long);
descriptor: (JJ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=14, args_size=3
start local 0 start local 1 start local 3 0: lload 3
lload 1
ldiv
lstore 5
start local 5 1: lconst_0
lstore 7
start local 7 2: aload 0
getfield org.apache.cassandra.db.Directories.paths:[Lorg/apache/cassandra/db/Directories$DataDirectory;
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 11
StackMap locals: org.apache.cassandra.db.Directories long long long long top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
3: aload 12
iload 10
aaload
astore 9
start local 9 4: aload 0
aload 9
invokevirtual org.apache.cassandra.db.Directories.getLocationForDisk:(Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/io/File;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.isUnwritable:(Ljava/io/File;)Z
ifeq 6
5: goto 10
6: StackMap locals: org.apache.cassandra.db.Directories long long long long org.apache.cassandra.db.Directories$DataDirectory int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
new org.apache.cassandra.db.Directories$DataDirectoryCandidate
dup
aload 9
invokespecial org.apache.cassandra.db.Directories$DataDirectoryCandidate.<init>:(Lorg/apache/cassandra/db/Directories$DataDirectory;)V
astore 13
start local 13 7: aload 13
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.availableSpace:J
lload 5
lcmp
ifge 9
8: goto 10
9: StackMap locals: org.apache.cassandra.db.Directories$DataDirectoryCandidate
StackMap stack:
lload 7
aload 13
getfield org.apache.cassandra.db.Directories$DataDirectoryCandidate.availableSpace:J
ladd
lstore 7
end local 13 end local 9 10: StackMap locals: org.apache.cassandra.db.Directories long long long long top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
11: iload 10
iload 11
if_icmplt 3
12: lload 7
lload 3
lcmp
ifle 13
iconst_1
ireturn
StackMap locals: org.apache.cassandra.db.Directories long long long long
StackMap stack:
13: iconst_0
ireturn
end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/db/Directories;
0 14 1 estimatedSSTables J
0 14 3 expectedTotalWriteSize J
1 14 5 writeSize J
2 14 7 totalAvailable J
4 10 9 dataDir Lorg/apache/cassandra/db/Directories$DataDirectory;
7 10 13 candidate Lorg/apache/cassandra/db/Directories$DataDirectoryCandidate;
MethodParameters:
Name Flags
estimatedSSTables
expectedTotalWriteSize
public org.apache.cassandra.db.Directories$DataDirectory[] getWriteableLocations();
descriptor: ()[Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, 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.Directories.paths:[Lorg/apache/cassandra/db/Directories$DataDirectory;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.Directories java.util.List top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.isUnwritable:(Ljava/io/File;)Z
ifne 5
4: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: aload 1
new org.apache.cassandra.db.Directories$3
dup
aload 0
invokespecial org.apache.cassandra.db.Directories$3.<init>:(Lorg/apache/cassandra/db/Directories;)V
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
8: aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray org.apache.cassandra.db.Directories$DataDirectory
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectory[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/Directories;
1 9 1 nonBlacklistedDirs Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectory;>;
3 5 2 dir Lorg/apache/cassandra/db/Directories$DataDirectory;
public static java.io.File getSnapshotDirectory(org.apache.cassandra.io.sstable.Descriptor, java.lang.String);
descriptor: (Lorg/apache/cassandra/io/sstable/Descriptor;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
aload 1
invokestatic org.apache.cassandra.db.Directories.getSnapshotDirectory:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 desc Lorg/apache/cassandra/io/sstable/Descriptor;
0 1 1 snapshotName Ljava/lang/String;
MethodParameters:
Name Flags
desc
snapshotName
public static java.io.File getSnapshotDirectory(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.db.Directories.getOrCreate:(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File;
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 1
aastore
invokestatic org.apache.cassandra.db.Directories.getOrCreate:(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 location Ljava/io/File;
0 3 1 snapshotName Ljava/lang/String;
MethodParameters:
Name Flags
location
snapshotName
public java.io.File getSnapshotManifestFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.db.Directories.getDirectoryForNewSSTables:()Ljava/io/File;
aload 1
invokestatic org.apache.cassandra.db.Directories.getSnapshotDirectory:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 1: new java.io.File
dup
aload 2
ldc "manifest.json"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/Directories;
0 2 1 snapshotName Ljava/lang/String;
1 2 2 snapshotDir Ljava/io/File;
MethodParameters:
Name Flags
snapshotName
public java.io.File getSnapshotSchemaFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.db.Directories.getDirectoryForNewSSTables:()Ljava/io/File;
aload 1
invokestatic org.apache.cassandra.db.Directories.getSnapshotDirectory:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 1: new java.io.File
dup
aload 2
ldc "schema.cql"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/Directories;
0 2 1 snapshotName Ljava/lang/String;
1 2 2 snapshotDir Ljava/io/File;
MethodParameters:
Name Flags
snapshotName
public java.io.File getNewEphemeralSnapshotMarkerFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: new java.io.File
dup
aload 0
lconst_1
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocationAsFile:(J)Ljava/io/File;
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 1
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokestatic org.apache.cassandra.db.Directories.getEphemeralSnapshotMarkerFile:(Ljava/io/File;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/Directories;
0 2 1 snapshotName Ljava/lang/String;
1 2 2 snapshotDir Ljava/io/File;
MethodParameters:
Name Flags
snapshotName
private static java.io.File getEphemeralSnapshotMarkerFile(java.io.File);
descriptor: (Ljava/io/File;)Ljava/io/File;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.File
dup
aload 0
ldc "ephemeral.snapshot"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 snapshotDirectory Ljava/io/File;
MethodParameters:
Name Flags
snapshotDirectory
public static java.io.File getBackupsDirectory(org.apache.cassandra.io.sstable.Descriptor);
descriptor: (Lorg/apache/cassandra/io/sstable/Descriptor;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
invokestatic org.apache.cassandra.db.Directories.getBackupsDirectory:(Ljava/io/File;)Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 desc Lorg/apache/cassandra/io/sstable/Descriptor;
MethodParameters:
Name Flags
desc
public static java.io.File getBackupsDirectory(java.io.File);
descriptor: (Ljava/io/File;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "backups"
aastore
dup
iconst_1
aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.db.Directories.getOrCreate:(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File;
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "backups"
aastore
invokestatic org.apache.cassandra.db.Directories.getOrCreate:(Ljava/io/File;[Ljava/lang/String;)Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 location Ljava/io/File;
MethodParameters:
Name Flags
location
public org.apache.cassandra.db.Directories$SSTableLister sstableLister(org.apache.cassandra.db.Directories$OnTxnErr);
descriptor: (Lorg/apache/cassandra/db/Directories$OnTxnErr;)Lorg/apache/cassandra/db/Directories$SSTableLister;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.db.Directories$SSTableLister
dup
aload 0
aload 1
invokespecial org.apache.cassandra.db.Directories$SSTableLister.<init>:(Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/Directories$OnTxnErr;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/Directories;
0 1 1 onTxnErr Lorg/apache/cassandra/db/Directories$OnTxnErr;
MethodParameters:
Name Flags
onTxnErr
public java.util.Map<java.lang.String, org.apache.cassandra.utils.Pair<java.lang.Long, java.lang.Long>> getSnapshotDetails();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual org.apache.cassandra.db.Directories.listSnapshots:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: org.apache.cassandra.db.Directories java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.File
astore 2
start local 2 3: aload 2
invokestatic org.apache.cassandra.io.util.FileUtils.folderSize:(Ljava/io/File;)J
lstore 4
start local 4 4: aload 0
aload 2
invokevirtual org.apache.cassandra.db.Directories.getTrueAllocatedSizeIn:(Ljava/io/File;)J
lstore 6
start local 6 5: aload 1
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 8
start local 8 6: aload 8
ifnonnull 8
7: lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
lload 6
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
astore 8
goto 9
8: StackMap locals: org.apache.cassandra.db.Directories java.util.Map java.io.File java.util.Iterator long long org.apache.cassandra.utils.Pair
StackMap stack:
aload 8
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lload 4
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 8
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lload 6
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
astore 8
9: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 8
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 6 end local 4 end local 2 10: StackMap locals: org.apache.cassandra.db.Directories java.util.Map top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
11: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/db/Directories;
1 12 1 snapshotSpaceMap Ljava/util/Map<Ljava/lang/String;Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;>;
3 10 2 snapshot Ljava/io/File;
4 10 4 sizeOnDisk J
5 10 6 trueSize J
6 10 8 spaceUsed Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;
Signature: ()Ljava/util/Map<Ljava/lang/String;Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;>;
public java.util.List<java.lang.String> listEphemeralSnapshots();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual org.apache.cassandra.db.Directories.listSnapshots:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.db.Directories java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.File
astore 2
start local 2 3: aload 2
invokestatic org.apache.cassandra.db.Directories.getEphemeralSnapshotMarkerFile:(Ljava/io/File;)Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 5
4: aload 1
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/Directories;
1 7 1 ephemeralSnapshots Ljava/util/List<Ljava/lang/String;>;
3 5 2 snapshot Ljava/io/File;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
private java.util.List<java.io.File> listSnapshots();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=1
start local 0 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 17
StackMap locals: org.apache.cassandra.db.Directories java.util.List top int int java.io.File[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: new java.io.File
dup
aload 2
invokevirtual java.io.File.getParent:()Ljava/lang/String;
ldc "snapshots"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
goto 6
5: StackMap locals: org.apache.cassandra.db.Directories java.util.List java.io.File int int java.io.File[]
StackMap stack:
new java.io.File
dup
aload 2
ldc "snapshots"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack: java.io.File
astore 6
start local 6 7: aload 6
invokevirtual java.io.File.exists:()Z
ifeq 16
aload 6
invokevirtual java.io.File.isDirectory:()Z
ifeq 16
8: aload 6
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 7
start local 7 9: aload 7
ifnull 16
10: aload 7
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 15
StackMap locals: org.apache.cassandra.db.Directories java.util.List java.io.File int int java.io.File[] java.io.File java.io.File[] top int int java.io.File[]
StackMap stack:
11: aload 11
iload 9
aaload
astore 8
start local 8 12: aload 8
invokevirtual java.io.File.isDirectory:()Z
ifeq 14
13: aload 1
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 14: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
15: iload 9
iload 10
if_icmplt 11
end local 7 end local 6 end local 2 16: StackMap locals: org.apache.cassandra.db.Directories java.util.List top int int java.io.File[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
17: iload 3
iload 4
if_icmplt 2
18: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/db/Directories;
1 19 1 snapshots Ljava/util/List<Ljava/io/File;>;
3 16 2 dir Ljava/io/File;
7 16 6 snapshotDir Ljava/io/File;
9 16 7 snapshotDirs [Ljava/io/File;
12 14 8 snapshot Ljava/io/File;
Signature: ()Ljava/util/List<Ljava/io/File;>;
public boolean snapshotExists(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: org.apache.cassandra.db.Directories java.lang.String top int int java.io.File[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
3: new java.io.File
dup
aload 2
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 6
start local 6 4: goto 6
end local 6 5: StackMap locals: org.apache.cassandra.db.Directories java.lang.String java.io.File int int java.io.File[]
StackMap stack:
new java.io.File
dup
aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 1
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 6
start local 6 6: StackMap locals: java.io.File
StackMap stack:
aload 6
invokevirtual java.io.File.exists:()Z
ifeq 8
7: iconst_1
ireturn
end local 6 end local 2 8: StackMap locals: org.apache.cassandra.db.Directories java.lang.String top int int java.io.File[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 1
10: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/Directories;
0 11 1 snapshotName Ljava/lang/String;
2 8 2 dir Ljava/io/File;
4 5 6 snapshotDir Ljava/io/File;
6 8 6 snapshotDir Ljava/io/File;
MethodParameters:
Name Flags
snapshotName
public static void clearSnapshot(java.lang.String, java.util.List<java.io.File>);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
ldc ""
goto 2
StackMap locals:
StackMap stack:
1: aload 0
StackMap locals:
StackMap stack: java.lang.String
2: astore 2
start local 2 3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 14
StackMap locals: java.lang.String java.util.List java.lang.String top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.File
astore 3
start local 3 5: new java.io.File
dup
aload 3
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "snapshots"
aastore
dup
iconst_1
aload 2
aastore
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 5
start local 5 6: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 14
7: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Removing snapshot directory {}"
aload 5
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
8: aload 5
invokestatic org.apache.cassandra.io.util.FileUtils.deleteRecursive:(Ljava/io/File;)V
9: goto 14
10: StackMap locals: java.lang.String java.util.List java.lang.String java.io.File java.util.Iterator java.io.File
StackMap stack: org.apache.cassandra.io.FSWriteError
astore 6
start local 6 11: getstatic org.apache.cassandra.utils.FBUtilities.isWindows:Z
ifeq 13
12: aload 5
invokestatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.addFailedSnapshot:(Ljava/io/File;)V
goto 14
13: StackMap locals: org.apache.cassandra.io.FSWriteError
StackMap stack:
aload 6
athrow
end local 6 end local 5 end local 3 14: StackMap locals: java.lang.String java.util.List java.lang.String top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 snapshotName Ljava/lang/String;
0 16 1 snapshotDirectories Ljava/util/List<Ljava/io/File;>;
3 16 2 tag Ljava/lang/String;
5 14 3 dir Ljava/io/File;
6 14 5 snapshotDir Ljava/io/File;
11 14 6 e Lorg/apache/cassandra/io/FSWriteError;
Exception table:
from to target type
8 9 10 Class org.apache.cassandra.io.FSWriteError
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;)V
MethodParameters:
Name Flags
snapshotName
snapshotDirectories
public long snapshotCreationTime(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.Directories java.lang.String top int int java.io.File[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
aload 1
invokestatic org.apache.cassandra.db.Directories.getSnapshotDirectory:(Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
astore 6
start local 6 3: aload 6
invokevirtual java.io.File.exists:()Z
ifeq 5
4: aload 6
invokevirtual java.io.File.lastModified:()J
lreturn
end local 6 end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 1
7: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Snapshot "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " doesn't exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/Directories;
0 8 1 snapshotName Ljava/lang/String;
2 5 2 dir Ljava/io/File;
3 5 6 snapshotDir Ljava/io/File;
MethodParameters:
Name Flags
snapshotName
public long trueSnapshotsSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: org.apache.cassandra.db.Directories long top int int java.io.File[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: new java.io.File
dup
aload 3
invokevirtual java.io.File.getParent:()Ljava/lang/String;
ldc "snapshots"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
goto 6
5: StackMap locals: org.apache.cassandra.db.Directories long java.io.File int int java.io.File[]
StackMap stack:
new java.io.File
dup
aload 3
ldc "snapshots"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack: java.io.File
astore 7
start local 7 7: lload 1
aload 0
aload 7
invokevirtual org.apache.cassandra.db.Directories.getTrueAllocatedSizeIn:(Ljava/io/File;)J
ladd
lstore 1
end local 7 end local 3 8: iinc 4 1
StackMap locals: org.apache.cassandra.db.Directories long top int int java.io.File[]
StackMap stack:
9: iload 4
iload 5
if_icmplt 2
10: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/Directories;
1 11 1 result J
3 8 3 dir Ljava/io/File;
7 8 7 snapshotDir Ljava/io/File;
public long getRawDiretoriesSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.Directories.dataPaths:[Ljava/io/File;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
StackMap locals: org.apache.cassandra.db.Directories long top int int java.io.File[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: lload 1
aload 3
invokestatic org.apache.cassandra.io.util.FileUtils.folderSize:(Ljava/io/File;)J
ladd
lstore 1
end local 3 4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 2
6: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/Directories;
1 7 1 totalAllocatedSize J
3 4 3 path Ljava/io/File;
public long getTrueAllocatedSizeIn(java.io.File);
descriptor: (Ljava/io/File;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
new org.apache.cassandra.db.Directories$SSTableSizeSummer
dup
aload 0
aload 1
aload 0
getstatic org.apache.cassandra.db.Directories$OnTxnErr.THROW:Lorg/apache/cassandra/db/Directories$OnTxnErr;
invokevirtual org.apache.cassandra.db.Directories.sstableLister:(Lorg/apache/cassandra/db/Directories$OnTxnErr;)Lorg/apache/cassandra/db/Directories$SSTableLister;
invokevirtual org.apache.cassandra.db.Directories$SSTableLister.listFiles:()Ljava/util/List;
invokespecial org.apache.cassandra.db.Directories$SSTableSizeSummer.<init>:(Lorg/apache/cassandra/db/Directories;Ljava/io/File;Ljava/util/List;)V
astore 2
start local 2 3: aload 1
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
aload 2
invokestatic java.nio.file.Files.walkFileTree:(Ljava/nio/file/Path;Ljava/nio/file/FileVisitor;)Ljava/nio/file/Path;
pop
4: goto 7
5: StackMap locals: org.apache.cassandra.db.Directories java.io.File org.apache.cassandra.db.Directories$SSTableSizeSummer
StackMap stack: java.io.IOException
astore 3
start local 3 6: getstatic org.apache.cassandra.db.Directories.logger:Lorg/slf4j/Logger;
ldc "Could not calculate the size of {}. {}"
aload 1
aload 3
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 7: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.db.Directories$SSTableSizeSummer.getAllocatedSize:()J
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/Directories;
0 8 1 input Ljava/io/File;
3 8 2 visitor Lorg/apache/cassandra/db/Directories$SSTableSizeSummer;
6 7 3 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
input
public static java.util.List<java.io.File> getKSChildDirectories(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
invokestatic org.apache.cassandra.db.Directories.getKSChildDirectories:(Ljava/lang/String;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ksName Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
ksName
public static java.util.List<java.io.File> getKSChildDirectories(java.lang.String, org.apache.cassandra.db.Directories$DataDirectory[]);
descriptor: (Ljava/lang/String;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=13, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 14
StackMap locals: java.lang.String org.apache.cassandra.db.Directories$DataDirectory[] java.util.List top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: new java.io.File
dup
aload 3
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
aload 0
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 7
start local 7 4: aload 7
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 8
start local 8 5: aload 8
ifnonnull 7
6: goto 13
7: StackMap locals: java.lang.String org.apache.cassandra.db.Directories$DataDirectory[] java.util.List org.apache.cassandra.db.Directories$DataDirectory int int org.apache.cassandra.db.Directories$DataDirectory[] java.io.File java.io.File[]
StackMap stack:
aload 8
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 12
StackMap locals: java.lang.String org.apache.cassandra.db.Directories$DataDirectory[] java.util.List org.apache.cassandra.db.Directories$DataDirectory int int org.apache.cassandra.db.Directories$DataDirectory[] java.io.File java.io.File[] top int int java.io.File[]
StackMap stack:
8: aload 12
iload 10
aaload
astore 9
start local 9 9: aload 9
invokevirtual java.io.File.isDirectory:()Z
ifeq 11
10: aload 2
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 11: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
12: iload 10
iload 11
if_icmplt 8
end local 8 end local 7 end local 3 13: StackMap locals: java.lang.String org.apache.cassandra.db.Directories$DataDirectory[] java.util.List top int int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
iload 5
if_icmplt 2
15: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 ksName Ljava/lang/String;
0 16 1 directories [Lorg/apache/cassandra/db/Directories$DataDirectory;
1 16 2 result Ljava/util/List<Ljava/io/File;>;
3 13 3 dataDirectory Lorg/apache/cassandra/db/Directories$DataDirectory;
4 13 7 ksDir Ljava/io/File;
5 13 8 cfDirs [Ljava/io/File;
9 11 9 cfDir Ljava/io/File;
Signature: (Ljava/lang/String;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
ksName
directories
public java.util.List<java.io.File> getCFDirectories();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, 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.Directories.dataPaths:[Ljava/io/File;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: org.apache.cassandra.db.Directories java.util.List top int int java.io.File[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokevirtual java.io.File.isDirectory:()Z
ifeq 5
4: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/Directories;
1 8 1 result Ljava/util/List<Ljava/io/File;>;
3 5 2 dataDirectory Ljava/io/File;
Signature: ()Ljava/util/List<Ljava/io/File;>;
private static java.io.File getOrCreate(java.io.File, java.lang.String[]);
descriptor: (Ljava/io/File;[Ljava/lang/String;)Ljava/io/File;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
arraylength
ifne 2
StackMap locals:
StackMap stack:
1: aload 0
goto 3
StackMap locals:
StackMap stack:
2: new java.io.File
dup
aload 0
aload 1
invokestatic org.apache.cassandra.db.Directories.join:([Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
StackMap locals:
StackMap stack: java.io.File
3: astore 2
start local 2 4: aload 2
invokevirtual java.io.File.exists:()Z
ifeq 7
5: aload 2
invokevirtual java.io.File.isDirectory:()Z
ifne 9
6: new java.lang.AssertionError
dup
ldc "Invalid directory path %s: path exists but is not a directory"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
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
7: StackMap locals: java.io.File
StackMap stack:
aload 2
invokevirtual java.io.File.mkdirs:()Z
ifne 9
aload 2
invokevirtual java.io.File.exists:()Z
ifeq 8
aload 2
invokevirtual java.io.File.isDirectory:()Z
ifne 9
8: StackMap locals:
StackMap stack:
new org.apache.cassandra.io.FSWriteError
dup
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to create directory "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
aload 2
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/io/File;)V
athrow
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 base Ljava/io/File;
0 10 1 subdirs [Ljava/lang/String;
4 10 2 dir Ljava/io/File;
MethodParameters:
Name Flags
base
subdirs
private static java.lang.String join(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/String;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.io.File.separator:Ljava/lang/String;
invokestatic org.apache.commons.lang3.StringUtils.join:([Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s [Ljava/lang/String;
MethodParameters:
Name Flags
s
static void overrideDataDirectoriesForTest(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
iload 1
new org.apache.cassandra.db.Directories$DataDirectory
dup
new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.apache.cassandra.db.Directories$DataDirectory.<init>:(Ljava/io/File;)V
aastore
3: iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
arraylength
if_icmplt 2
end local 1 5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 loc Ljava/lang/String;
1 5 1 i I
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
loc
static void resetDataDirectoriesAfterTest();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=2, args_size=0
0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAllDataFileLocations:()[Ljava/lang/String;
astore 0
start local 0 1: iconst_0
istore 1
start local 1 2: goto 5
3: StackMap locals: java.lang.String[] int
StackMap stack:
getstatic org.apache.cassandra.db.Directories.dataDirectories:[Lorg/apache/cassandra/db/Directories$DataDirectory;
iload 1
new org.apache.cassandra.db.Directories$DataDirectory
dup
new java.io.File
dup
aload 0
iload 1
aaload
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.apache.cassandra.db.Directories$DataDirectory.<init>:(Ljava/io/File;)V
aastore
4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
arraylength
if_icmplt 3
end local 1 6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 locations [Ljava/lang/String;
2 6 1 i I
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "Directories.java"
NestMembers:
org.apache.cassandra.db.Directories$1 org.apache.cassandra.db.Directories$2 org.apache.cassandra.db.Directories$3 org.apache.cassandra.db.Directories$DataDirectory org.apache.cassandra.db.Directories$DataDirectoryCandidate org.apache.cassandra.db.Directories$FileAction org.apache.cassandra.db.Directories$FileType org.apache.cassandra.db.Directories$OnTxnErr org.apache.cassandra.db.Directories$SSTableLister org.apache.cassandra.db.Directories$SSTableSizeSummer
InnerClasses:
org.apache.cassandra.db.Directories$1
org.apache.cassandra.db.Directories$2
org.apache.cassandra.db.Directories$3
public DataDirectory = org.apache.cassandra.db.Directories$DataDirectory of org.apache.cassandra.db.Directories
final DataDirectoryCandidate = org.apache.cassandra.db.Directories$DataDirectoryCandidate of org.apache.cassandra.db.Directories
public final FileAction = org.apache.cassandra.db.Directories$FileAction of org.apache.cassandra.db.Directories
public final FileType = org.apache.cassandra.db.Directories$FileType of org.apache.cassandra.db.Directories
public final OnTxnErr = org.apache.cassandra.db.Directories$OnTxnErr of org.apache.cassandra.db.Directories
public SSTableLister = org.apache.cassandra.db.Directories$SSTableLister of org.apache.cassandra.db.Directories
private SSTableSizeSummer = org.apache.cassandra.db.Directories$SSTableSizeSummer of org.apache.cassandra.db.Directories