public class org.apache.cassandra.tracing.TraceStateImpl extends org.apache.cassandra.tracing.TraceState
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.tracing.TraceStateImpl
super_class: org.apache.cassandra.tracing.TraceState
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static int WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS;
descriptor: I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private final java.util.Set<java.util.concurrent.Future<?>> pendingFutures;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/util/concurrent/Future<*>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/tracing/TraceStateImpl;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
1: ldc "cassandra.wait_for_tracing_events_timeout_secs"
ldc "0"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
2: putstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.InetAddress, java.util.UUID, org.apache.cassandra.tracing.Tracing$TraceType);
descriptor: (Ljava/net/InetAddress;Ljava/util/UUID;Lorg/apache/cassandra/tracing/Tracing$TraceType;)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
aload 1
aload 2
aload 3
invokespecial org.apache.cassandra.tracing.TraceState.<init>:(Ljava/net/InetAddress;Ljava/util/UUID;Lorg/apache/cassandra/tracing/Tracing$TraceType;)V
1: aload 0
invokestatic java.util.concurrent.ConcurrentHashMap.newKeySet:()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
putfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/tracing/TraceStateImpl;
0 3 1 coordinator Ljava/net/InetAddress;
0 3 2 sessionId Ljava/util/UUID;
0 3 3 traceType Lorg/apache/cassandra/tracing/Tracing$TraceType;
MethodParameters:
Name Flags
coordinator
sessionId
traceType
protected void traceImpl(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual org.apache.cassandra.tracing.TraceStateImpl.elapsed:()I
istore 3
start local 3 2: aload 0
aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.sessionIdBytes:Ljava/nio/ByteBuffer;
aload 1
iload 3
aload 2
aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.ttl:I
invokestatic org.apache.cassandra.tracing.TraceKeyspace.makeEventMutation:(Ljava/nio/ByteBuffer;Ljava/lang/String;ILjava/lang/String;I)Lorg/apache/cassandra/db/Mutation;
invokevirtual org.apache.cassandra.tracing.TraceStateImpl.executeMutation:(Lorg/apache/cassandra/db/Mutation;)V
3: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 5
4: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
ldc "Adding <{}> to trace events"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals: java.lang.String int
StackMap stack:
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/tracing/TraceStateImpl;
0 6 1 message Ljava/lang/String;
1 6 2 threadName Ljava/lang/String;
2 6 3 elapsed I
MethodParameters:
Name Flags
message
protected void waitForPendingEvents();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
ifgt 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 6
3: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
ldc "Waiting for up to {} seconds for {} trace events to complete"
4: getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
5: invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
anewarray java.util.concurrent.CompletableFuture
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture[]
invokestatic java.util.concurrent.CompletableFuture.allOf:([Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
7: getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
i2l
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.CompletableFuture.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
8: goto 17
9: StackMap locals:
StackMap stack: java.util.concurrent.TimeoutException
pop
10: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 17
11: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
ldc "Failed to wait for tracing events to complete in {} seconds"
12: getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
13: invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
goto 17
14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 15: aload 1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
16: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
ldc "Got exception whilst waiting for tracing events to complete"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/cassandra/tracing/TraceStateImpl;
15 17 1 t Ljava/lang/Throwable;
Exception table:
from to target type
2 8 9 Class java.util.concurrent.TimeoutException
2 8 14 Class java.lang.Throwable
void executeMutation(org.apache.cassandra.db.Mutation);
descriptor: (Lorg/apache/cassandra/db/Mutation;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.tracing.TraceStateImpl$1
dup
aload 0
aload 1
invokespecial org.apache.cassandra.tracing.TraceStateImpl$1.<init>:(Lorg/apache/cassandra/tracing/TraceStateImpl;Lorg/apache/cassandra/db/Mutation;)V
1: getstatic org.apache.cassandra.concurrent.Stage.TRACING:Lorg/apache/cassandra/concurrent/Stage;
invokestatic org.apache.cassandra.concurrent.StageManager.getStage:(Lorg/apache/cassandra/concurrent/Stage;)Lorg/apache/cassandra/concurrent/LocalAwareExecutorService;
2: invokestatic java.util.concurrent.CompletableFuture.runAsync:(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
astore 2
start local 2 3: aload 0
getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
istore 3
start local 3 4: iload 3
ifne 6
5: getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
ldc "Failed to insert pending future, tracing synchronization may not work"
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
6: StackMap locals: java.util.concurrent.CompletableFuture int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/tracing/TraceStateImpl;
0 7 1 mutation Lorg/apache/cassandra/db/Mutation;
3 7 2 fut Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
4 7 3 ret Z
MethodParameters:
Name Flags
mutation final
static void mutateWithCatch(org.apache.cassandra.db.Mutation);
descriptor: (Lorg/apache/cassandra/db/Mutation;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
getstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
invokestatic java.lang.System.nanoTime:()J
invokestatic org.apache.cassandra.service.StorageProxy.mutate:(Ljava/util/Collection;Lorg/apache/cassandra/db/ConsistencyLevel;J)V
1: goto 4
2: StackMap locals:
StackMap stack: org.apache.cassandra.exceptions.OverloadedException
pop
3: getstatic org.apache.cassandra.tracing.Tracing.logger:Lorg/slf4j/Logger;
ldc "Too many nodes are overloaded to save trace events"
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 mutation Lorg/apache/cassandra/db/Mutation;
Exception table:
from to target type
0 1 2 Class org.apache.cassandra.exceptions.OverloadedException
MethodParameters:
Name Flags
mutation
}
SourceFile: "TraceStateImpl.java"
NestMembers:
org.apache.cassandra.tracing.TraceStateImpl$1
InnerClasses:
public KeySetView = java.util.concurrent.ConcurrentHashMap$KeySetView of java.util.concurrent.ConcurrentHashMap
org.apache.cassandra.tracing.TraceStateImpl$1
public final TraceType = org.apache.cassandra.tracing.Tracing$TraceType of org.apache.cassandra.tracing.Tracing