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: .line 49
            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: .line 53
            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: .line 52
            putstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
         3: .line 53
            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 // org.apache.cassandra.tracing.TraceStateImpl this
        start local 1 // java.net.InetAddress coordinator
        start local 2 // java.util.UUID sessionId
        start local 3 // org.apache.cassandra.tracing.Tracing$TraceType traceType
         0: .line 59
            aload 0 /* this */
            aload 1 /* coordinator */
            aload 2 /* sessionId */
            aload 3 /* traceType */
            invokespecial org.apache.cassandra.tracing.TraceState.<init>:(Ljava/net/InetAddress;Ljava/util/UUID;Lorg/apache/cassandra/tracing/Tracing$TraceType;)V
         1: .line 55
            aload 0 /* this */
            invokestatic java.util.concurrent.ConcurrentHashMap.newKeySet:()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
            putfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
         2: .line 60
            return
        end local 3 // org.apache.cassandra.tracing.Tracing$TraceType traceType
        end local 2 // java.util.UUID sessionId
        end local 1 // java.net.InetAddress coordinator
        end local 0 // org.apache.cassandra.tracing.TraceStateImpl this
      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 // org.apache.cassandra.tracing.TraceStateImpl this
        start local 1 // java.lang.String message
         0: .line 64
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
            astore 2 /* threadName */
        start local 2 // java.lang.String threadName
         1: .line 65
            aload 0 /* this */
            invokevirtual org.apache.cassandra.tracing.TraceStateImpl.elapsed:()I
            istore 3 /* elapsed */
        start local 3 // int elapsed
         2: .line 67
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.tracing.TraceStateImpl.sessionIdBytes:Ljava/nio/ByteBuffer;
            aload 1 /* message */
            iload 3 /* elapsed */
            aload 2 /* threadName */
            aload 0 /* this */
            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: .line 68
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
            ifeq 5
         4: .line 69
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            ldc "Adding <{}> to trace events"
            aload 1 /* message */
            invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
         5: .line 70
      StackMap locals: java.lang.String int
      StackMap stack:
            return
        end local 3 // int elapsed
        end local 2 // java.lang.String threadName
        end local 1 // java.lang.String message
        end local 0 // org.apache.cassandra.tracing.TraceStateImpl this
      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 // org.apache.cassandra.tracing.TraceStateImpl this
         0: .line 77
            getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
            ifgt 2
         1: .line 78
            return
         2: .line 82
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
            ifeq 6
         3: .line 83
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            ldc "Waiting for up to {} seconds for {} trace events to complete"
         4: .line 84
            getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 0 /* this */
            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: .line 83
            invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
         6: .line 86
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
            aload 0 /* this */
            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: .line 87
            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: .line 88
            goto 17
         9: .line 89
      StackMap locals:
      StackMap stack: java.util.concurrent.TimeoutException
            pop
        10: .line 91
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
            ifeq 17
        11: .line 92
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            ldc "Failed to wait for tracing events to complete in {} seconds"
        12: .line 93
            getstatic org.apache.cassandra.tracing.TraceStateImpl.WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
        13: .line 92
            invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
            goto 17
        14: .line 95
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1 /* t */
        start local 1 // java.lang.Throwable t
        15: .line 97
            aload 1 /* t */
            invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
        16: .line 98
            getstatic org.apache.cassandra.tracing.TraceStateImpl.logger:Lorg/slf4j/Logger;
            ldc "Got exception whilst waiting for tracing events to complete"
            aload 1 /* t */
            invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
        end local 1 // java.lang.Throwable t
        17: .line 100
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.apache.cassandra.tracing.TraceStateImpl this
      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 // org.apache.cassandra.tracing.TraceStateImpl this
        start local 1 // org.apache.cassandra.db.Mutation mutation
         0: .line 105
            new org.apache.cassandra.tracing.TraceStateImpl$1
            dup
            aload 0 /* this */
            aload 1 /* mutation */
            invokespecial org.apache.cassandra.tracing.TraceStateImpl$1.<init>:(Lorg/apache/cassandra/tracing/TraceStateImpl;Lorg/apache/cassandra/db/Mutation;)V
         1: .line 111
            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: .line 105
            invokestatic java.util.concurrent.CompletableFuture.runAsync:(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
            astore 2 /* fut */
        start local 2 // java.util.concurrent.CompletableFuture fut
         3: .line 113
            aload 0 /* this */
            getfield org.apache.cassandra.tracing.TraceStateImpl.pendingFutures:Ljava/util/Set;
            aload 2 /* fut */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            istore 3 /* ret */
        start local 3 // boolean ret
         4: .line 114
            iload 3 /* ret */
            ifne 6
         5: .line 115
            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: .line 116
      StackMap locals: java.util.concurrent.CompletableFuture int
      StackMap stack:
            return
        end local 3 // boolean ret
        end local 2 // java.util.concurrent.CompletableFuture fut
        end local 1 // org.apache.cassandra.db.Mutation mutation
        end local 0 // org.apache.cassandra.tracing.TraceStateImpl this
      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 // org.apache.cassandra.db.Mutation mutation
         0: .line 122
            aload 0 /* mutation */
            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: .line 123
            goto 4
         2: .line 124
      StackMap locals:
      StackMap stack: org.apache.cassandra.exceptions.OverloadedException
            pop
         3: .line 126
            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: .line 128
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.apache.cassandra.db.Mutation mutation
      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