public class org.apache.cassandra.repair.AnticompactionTask extends com.google.common.util.concurrent.AbstractFuture<java.net.InetAddress> implements java.lang.Runnable, org.apache.cassandra.gms.IEndpointStateChangeSubscriber, org.apache.cassandra.gms.IFailureDetectionEventListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.repair.AnticompactionTask
super_class: com.google.common.util.concurrent.AbstractFuture
{
private static final org.apache.cassandra.utils.CassandraVersion VERSION_CHECKER;
descriptor: Lorg/apache/cassandra/utils/CassandraVersion;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.util.UUID parentSession;
descriptor: Ljava/util/UUID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.InetAddress neighbor;
descriptor: Ljava/net/InetAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>> successfulRanges;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
private final java.util.concurrent.atomic.AtomicBoolean isFinished;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.cassandra.utils.CassandraVersion
dup
ldc "2.1.5"
invokespecial org.apache.cassandra.utils.CassandraVersion.<init>:(Ljava/lang/String;)V
putstatic org.apache.cassandra.repair.AnticompactionTask.VERSION_CHECKER:Lorg/apache/cassandra/utils/CassandraVersion;
1: ldc Lorg/apache/cassandra/repair/AnticompactionTask;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.repair.AnticompactionTask.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.UUID, java.net.InetAddress, java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>);
descriptor: (Ljava/util/UUID;Ljava/net/InetAddress;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.google.common.util.concurrent.AbstractFuture.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.apache.cassandra.repair.AnticompactionTask.isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
aload 1
putfield org.apache.cassandra.repair.AnticompactionTask.parentSession:Ljava/util/UUID;
3: aload 0
aload 2
putfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
4: aload 0
aload 3
putfield org.apache.cassandra.repair.AnticompactionTask.successfulRanges:Ljava/util/Collection;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 6 1 parentSession Ljava/util/UUID;
0 6 2 neighbor Ljava/net/InetAddress;
0 6 3 successfulRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
Signature: (Ljava/util/UUID;Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;)V
MethodParameters:
Name Flags
parentSession
neighbor
successfulRanges
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: getstatic org.apache.cassandra.gms.FailureDetector.instance:Lorg/apache/cassandra/gms/IFailureDetector;
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
invokeinterface org.apache.cassandra.gms.IFailureDetector.isAlive:(Ljava/net/InetAddress;)Z
ifeq 9
1: new org.apache.cassandra.repair.messages.AnticompactionRequest
dup
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.parentSession:Ljava/util/UUID;
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.successfulRanges:Ljava/util/Collection;
invokespecial org.apache.cassandra.repair.messages.AnticompactionRequest.<init>:(Ljava/util/UUID;Ljava/util/Collection;)V
astore 1
start local 1 2: aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
invokestatic org.apache.cassandra.db.SystemKeyspace.getReleaseVersion:(Ljava/net/InetAddress;)Lorg/apache/cassandra/utils/CassandraVersion;
astore 2
start local 2 3: aload 2
ifnull 6
aload 2
getstatic org.apache.cassandra.repair.AnticompactionTask.VERSION_CHECKER:Lorg/apache/cassandra/utils/CassandraVersion;
invokevirtual org.apache.cassandra.utils.CassandraVersion.compareTo:(Lorg/apache/cassandra/utils/CassandraVersion;)I
ifle 6
4: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 1
invokevirtual org.apache.cassandra.repair.messages.AnticompactionRequest.createMessage:()Lorg/apache/cassandra/net/MessageOut;
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
new org.apache.cassandra.repair.AnticompactionTask$AnticompactionCallback
dup
aload 0
aload 0
invokespecial org.apache.cassandra.repair.AnticompactionTask$AnticompactionCallback.<init>:(Lorg/apache/cassandra/repair/AnticompactionTask;Lorg/apache/cassandra/repair/AnticompactionTask;)V
getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
lconst_1
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
iconst_1
invokevirtual org.apache.cassandra.net.MessagingService.sendRR:(Lorg/apache/cassandra/net/MessageOut;Ljava/net/InetAddress;Lorg/apache/cassandra/net/IAsyncCallback;JZ)I
pop
5: goto 10
6: StackMap locals: org.apache.cassandra.repair.messages.AnticompactionRequest org.apache.cassandra.utils.CassandraVersion
StackMap stack:
invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 1
invokevirtual org.apache.cassandra.repair.messages.AnticompactionRequest.createMessage:()Lorg/apache/cassandra/net/MessageOut;
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.net.MessagingService.sendOneWay:(Lorg/apache/cassandra/net/MessageOut;Ljava/net/InetAddress;)V
7: aload 0
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.repair.AnticompactionTask.maybeSetResult:(Ljava/net/InetAddress;)Z
pop
end local 2 end local 1 8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
new java.io.IOException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is down"
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
invokevirtual org.apache.cassandra.repair.AnticompactionTask.maybeSetException:(Ljava/lang/Throwable;)Z
pop
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
2 8 1 acr Lorg/apache/cassandra/repair/messages/AnticompactionRequest;
3 8 2 peerVersion Lorg/apache/cassandra/utils/CassandraVersion;
private boolean maybeSetException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 3
1: aload 0
aload 1
invokevirtual org.apache.cassandra.repair.AnticompactionTask.setException:(Ljava/lang/Throwable;)Z
pop
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 4 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
private boolean maybeSetResult(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 3
1: aload 0
aload 1
invokevirtual org.apache.cassandra.repair.AnticompactionTask.set:(Ljava/lang/Object;)Z
pop
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 4 1 o Ljava/net/InetAddress;
MethodParameters:
Name Flags
o
public void onJoin(java.net.InetAddress, org.apache.cassandra.gms.EndpointState);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/EndpointState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 1 1 endpoint Ljava/net/InetAddress;
0 1 2 epState Lorg/apache/cassandra/gms/EndpointState;
MethodParameters:
Name Flags
endpoint
epState
public void beforeChange(java.net.InetAddress, org.apache.cassandra.gms.EndpointState, org.apache.cassandra.gms.ApplicationState, org.apache.cassandra.gms.VersionedValue);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/EndpointState;Lorg/apache/cassandra/gms/ApplicationState;Lorg/apache/cassandra/gms/VersionedValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: return
end local 4 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/repair/AnticompactionTask;
0 1 1 endpoint Ljava/net/InetAddress;
0 1 2 currentState Lorg/apache/cassandra/gms/EndpointState;
0 1 3 newStateKey Lorg/apache/cassandra/gms/ApplicationState;
0 1 4 newValue Lorg/apache/cassandra/gms/VersionedValue;
MethodParameters:
Name Flags
endpoint
currentState
newStateKey
newValue
public void onChange(java.net.InetAddress, org.apache.cassandra.gms.ApplicationState, org.apache.cassandra.gms.VersionedValue);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/ApplicationState;Lorg/apache/cassandra/gms/VersionedValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
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/repair/AnticompactionTask;
0 1 1 endpoint Ljava/net/InetAddress;
0 1 2 state Lorg/apache/cassandra/gms/ApplicationState;
0 1 3 value Lorg/apache/cassandra/gms/VersionedValue;
MethodParameters:
Name Flags
endpoint
state
value
public void onAlive(java.net.InetAddress, org.apache.cassandra.gms.EndpointState);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/EndpointState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 1 1 endpoint Ljava/net/InetAddress;
0 1 2 state Lorg/apache/cassandra/gms/EndpointState;
MethodParameters:
Name Flags
endpoint
state
public void onDead(java.net.InetAddress, org.apache.cassandra.gms.EndpointState);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/EndpointState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 1 1 endpoint Ljava/net/InetAddress;
0 1 2 state Lorg/apache/cassandra/gms/EndpointState;
MethodParameters:
Name Flags
endpoint
state
public void onRemove(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc 1.7976931348623157E308
invokevirtual org.apache.cassandra.repair.AnticompactionTask.convict:(Ljava/net/InetAddress;D)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 2 1 endpoint Ljava/net/InetAddress;
MethodParameters:
Name Flags
endpoint
public void onRestart(java.net.InetAddress, org.apache.cassandra.gms.EndpointState);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/gms/EndpointState;)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
ldc 1.7976931348623157E308
invokevirtual org.apache.cassandra.repair.AnticompactionTask.convict:(Ljava/net/InetAddress;D)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/repair/AnticompactionTask;
0 2 1 endpoint Ljava/net/InetAddress;
0 2 2 epState Lorg/apache/cassandra/gms/EndpointState;
MethodParameters:
Name Flags
endpoint
epState
public void convict(java.net.InetAddress, double);
descriptor: (Ljava/net/InetAddress;D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.neighbor:Ljava/net/InetAddress;
aload 1
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
dload 2
ldc 2.0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getPhiConvictThreshold:()D
dmul
dcmpg
ifge 4
3: return
4: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Endpoint %s died during anti-compaction."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: aload 0
aload 4
invokevirtual org.apache.cassandra.repair.AnticompactionTask.maybeSetException:(Ljava/lang/Throwable;)Z
ifeq 7
6: getstatic org.apache.cassandra.repair.AnticompactionTask.logger:Lorg/slf4j/Logger;
ldc "[repair #{}] Endpoint {} died during anti-compaction"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.repair.AnticompactionTask.parentSession:Ljava/util/UUID;
aastore
dup
iconst_2
aload 4
aastore
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;[Ljava/lang/Object;)V
7: StackMap locals: java.lang.Exception
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/repair/AnticompactionTask;
0 8 1 endpoint Ljava/net/InetAddress;
0 8 2 phi D
5 8 4 exception Ljava/lang/Exception;
MethodParameters:
Name Flags
endpoint
phi
}
Signature: Lcom/google/common/util/concurrent/AbstractFuture<Ljava/net/InetAddress;>;Ljava/lang/Runnable;Lorg/apache/cassandra/gms/IEndpointStateChangeSubscriber;Lorg/apache/cassandra/gms/IFailureDetectionEventListener;
SourceFile: "AnticompactionTask.java"
NestMembers:
org.apache.cassandra.repair.AnticompactionTask$AnticompactionCallback
InnerClasses:
public AnticompactionCallback = org.apache.cassandra.repair.AnticompactionTask$AnticompactionCallback of org.apache.cassandra.repair.AnticompactionTask