public class org.apache.cassandra.service.DefaultFSErrorHandler implements org.apache.cassandra.io.FSErrorHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.DefaultFSErrorHandler
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/DefaultFSErrorHandler;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.DefaultFSErrorHandler.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/DefaultFSErrorHandler;
public void handleCorruptSSTable(org.apache.cassandra.io.sstable.CorruptSSTableException);
descriptor: (Lorg/apache/cassandra/io/sstable/CorruptSSTableException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.isDaemonSetupCompleted:()Z
ifne 2
1: aload 1
invokestatic org.apache.cassandra.service.DefaultFSErrorHandler.handleStartupFSError:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
3: invokestatic org.apache.cassandra.service.DefaultFSErrorHandler.$SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy:()[I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy:()Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iaload
tableswitch { // 4 - 4
4: 4
default: 5
}
4: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.stopTransports:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/service/DefaultFSErrorHandler;
0 6 1 e Lorg/apache/cassandra/io/sstable/CorruptSSTableException;
MethodParameters:
Name Flags
e
public void handleFSError(org.apache.cassandra.io.FSError);
descriptor: (Lorg/apache/cassandra/io/FSError;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.isDaemonSetupCompleted:()Z
ifne 2
1: aload 1
invokestatic org.apache.cassandra.service.DefaultFSErrorHandler.handleStartupFSError:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
3: invokestatic org.apache.cassandra.service.DefaultFSErrorHandler.$SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy:()[I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy:()Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 6
2: 4
3: 12
4: 4
default: 13
}
4: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.stopTransports:()V
5: goto 14
6: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.io.FSError.path:Ljava/io/File;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.maybeMarkUnwritable:(Ljava/io/File;)Ljava/io/File;
pop
7: aload 1
instanceof org.apache.cassandra.io.FSReadError
ifeq 14
8: aload 1
getfield org.apache.cassandra.io.FSError.path:Ljava/io/File;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.maybeMarkUnreadable:(Ljava/io/File;)Ljava/io/File;
astore 2
start local 2 9: aload 2
ifnull 14
10: aload 2
invokestatic org.apache.cassandra.db.Keyspace.removeUnreadableSSTables:(Ljava/io/File;)V
end local 2 11: goto 14
12: StackMap locals:
StackMap stack:
goto 14
13: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/service/DefaultFSErrorHandler;
0 15 1 e Lorg/apache/cassandra/io/FSError;
9 11 2 directory Ljava/io/File;
MethodParameters:
Name Flags
e
private static void handleStartupFSError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.service.DefaultFSErrorHandler.$SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy:()[I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy:()Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iaload
tableswitch { // 2 - 5
2: 1
3: 7
4: 1
5: 1
default: 7
}
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.DefaultFSErrorHandler.logger:Lorg/slf4j/Logger;
ldc "Exiting forcefully due to file system exception on startup, disk failure policy \"{}\""
2: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDiskFailurePolicy:()Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
3: aload 0
4: invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
5: aload 0
iconst_1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.killCurrentJVM:(Ljava/lang/Throwable;Z)V
6: goto 7
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
static int[] $SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.service.DefaultFSErrorHandler.$SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.config.Config$DiskFailurePolicy.values:()[Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.config.Config$DiskFailurePolicy.best_effort:Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.config.Config$DiskFailurePolicy.die:Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iconst_5
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.config.Config$DiskFailurePolicy.ignore:Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.config.Config$DiskFailurePolicy.stop:Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.apache.cassandra.config.Config$DiskFailurePolicy.stop_paranoid:Lorg/apache/cassandra/config/Config$DiskFailurePolicy;
invokevirtual org.apache.cassandra.config.Config$DiskFailurePolicy.ordinal:()I
iconst_4
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic org.apache.cassandra.service.DefaultFSErrorHandler.$SWITCH_TABLE$org$apache$cassandra$config$Config$DiskFailurePolicy:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
}
SourceFile: "DefaultFSErrorHandler.java"
InnerClasses:
public final DiskFailurePolicy = org.apache.cassandra.config.Config$DiskFailurePolicy of org.apache.cassandra.config.Config