public class org.apache.cassandra.io.sstable.SnapshotDeletingTask implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.io.sstable.SnapshotDeletingTask
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 final java.io.File path;
descriptor: Ljava/io/File;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private static final java.util.Queue<java.lang.Runnable> failedTasks;
descriptor: Ljava/util/Queue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Queue<Ljava/lang/Runnable;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/io/sstable/SnapshotDeletingTask;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.logger:Lorg/slf4j/Logger;
1: new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.failedTasks:Ljava/util/Queue;
return
LocalVariableTable:
Start End Slot Name Signature
public static void addFailedSnapshot(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.logger:Lorg/slf4j/Logger;
ldc "Failed to delete snapshot [{}]. Will retry after further sstable deletions. Folder will be deleted on JVM shutdown or next node restart on crash."
aload 0
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
invokestatic org.apache.cassandra.db.WindowsFailedSnapshotTracker.handleFailedSnapshot:(Ljava/io/File;)V
2: getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.failedTasks:Ljava/util/Queue;
new org.apache.cassandra.io.sstable.SnapshotDeletingTask
dup
aload 0
invokespecial org.apache.cassandra.io.sstable.SnapshotDeletingTask.<init>:(Ljava/io/File;)V
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/io/File;
MethodParameters:
Name Flags
path
private void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.io.sstable.SnapshotDeletingTask.path:Ljava/io/File;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/io/sstable/SnapshotDeletingTask;
0 3 1 path Ljava/io/File;
MethodParameters:
Name Flags
path
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.sstable.SnapshotDeletingTask.path:Ljava/io/File;
invokestatic org.apache.cassandra.io.util.FileUtils.deleteRecursive:(Ljava/io/File;)V
1: getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.logger:Lorg/slf4j/Logger;
ldc "Successfully deleted snapshot {}."
aload 0
getfield org.apache.cassandra.io.sstable.SnapshotDeletingTask.path:Ljava/io/File;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
2: goto 5
3: StackMap locals:
StackMap stack: org.apache.cassandra.io.FSWriteError
pop
4: getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.failedTasks:Ljava/util/Queue;
aload 0
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/io/sstable/SnapshotDeletingTask;
Exception table:
from to target type
0 2 3 Class org.apache.cassandra.io.FSWriteError
public static void rescheduleFailedTasks();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: goto 2
start local 0 1: StackMap locals: java.lang.Runnable
StackMap stack:
getstatic org.apache.cassandra.concurrent.ScheduledExecutors.nonPeriodicTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
pop
end local 0 2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.failedTasks:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
dup
astore 0
start local 0 3: ifnonnull 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 task Ljava/lang/Runnable;
3 5 0 task Ljava/lang/Runnable;
public static int pendingDeletionCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.cassandra.io.sstable.SnapshotDeletingTask.failedTasks:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "SnapshotDeletingTask.java"