public class org.apache.cassandra.net.OutboundTcpConnection extends io.netty.util.concurrent.FastThreadLocalThread
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.net.OutboundTcpConnection
super_class: io.netty.util.concurrent.FastThreadLocalThread
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cassandra."
private static final java.lang.String INTRADC_TCP_NODELAY_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cassandra.otc_intradc_tcp_nodelay"
private static final boolean INTRADC_TCP_NODELAY;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String BUFFER_SIZE_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cassandra.otc_buffer_size"
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int MAX_COALESCED_MESSAGES;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
private static final org.apache.cassandra.net.MessageOut<?> CLOSE_SENTINEL;
descriptor: Lorg/apache/cassandra/net/MessageOut;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/apache/cassandra/net/MessageOut<*>;
private volatile boolean isStopped;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final int OPEN_RETRY_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
public static final int WAIT_FOR_VERSION_MAX_TIME;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5000
private static final int NO_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2147483648
static final int LZ4_HASH_SEED;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -1756908916
private final java.util.concurrent.BlockingQueue<org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage> backlog;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;>;
private static final java.lang.String BACKLOG_PURGE_SIZE_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cassandra.otc_backlog_purge_size"
static final int BACKLOG_PURGE_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private final java.util.concurrent.atomic.AtomicBoolean backlogExpirationActive;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile long backlogNextExpirationTime;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final org.apache.cassandra.net.OutboundTcpConnectionPool poolReference;
descriptor: Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.utils.CoalescingStrategies$CoalescingStrategy cs;
descriptor: Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.apache.cassandra.io.util.DataOutputStreamPlus out;
descriptor: Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
flags: (0x0002) ACC_PRIVATE
private java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private volatile long completed;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.atomic.AtomicLong dropped;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int currentMsgBufferCount;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int targetVersion;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=0
0: ldc Lorg/apache/cassandra/net/OutboundTcpConnection;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
1: ldc "cassandra.otc_intradc_tcp_nodelay"
ldc "true"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic org.apache.cassandra.net.OutboundTcpConnection.INTRADC_TCP_NODELAY:Z
2: ldc "cassandra.otc_buffer_size"
ldc 65536
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic org.apache.cassandra.net.OutboundTcpConnection.BUFFER_SIZE:I
3: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcCoalescingStrategy:()Ljava/lang/String;
astore 0
start local 0 4: aload 0
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 4
-2005403122: 5
-864683537: 6
66907988: 7
1053567612: 8
default: 11
}
StackMap locals: java.lang.String java.lang.String
StackMap stack:
5: aload 1
ldc "TIMEHORIZON"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 11
StackMap locals:
StackMap stack:
6: aload 1
ldc "MOVINGAVERAGE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 11
StackMap locals:
StackMap stack:
7: aload 1
ldc "FIXED"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 11
StackMap locals:
StackMap stack:
8: aload 1
ldc "DISABLED"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 11
9: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "OutboundTcpConnection using coalescing strategy {}"
aload 0
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
10: goto 12
11: StackMap locals:
StackMap stack:
ldc "dummy"
invokestatic org.apache.cassandra.net.OutboundTcpConnection.newCoalescingStrategy:(Ljava/lang/String;)Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
pop
12: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcCoalescingWindow:()I
istore 2
start local 2 13: iload 2
sipush 200
if_icmpeq 15
14: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "OutboundTcpConnection coalescing window set to {}\u03BCs"
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
15: StackMap locals: java.lang.String top int
StackMap stack:
iload 2
ifge 19
16: new java.lang.ExceptionInInitializerError
dup
17: new java.lang.StringBuilder
dup
ldc "Value provided for coalescing window must be greater than 0: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokespecial java.lang.ExceptionInInitializerError.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcBacklogExpirationInterval:()I
istore 3
start local 3 20: iload 3
sipush 200
if_icmpeq 22
21: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "OutboundTcpConnection backlog expiration interval set to to {}ms"
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
end local 3 end local 2 end local 0 22: StackMap locals:
StackMap stack:
new org.apache.cassandra.net.MessageOut
dup
getstatic org.apache.cassandra.net.MessagingService$Verb.INTERNAL_RESPONSE:Lorg/apache/cassandra/net/MessagingService$Verb;
invokespecial org.apache.cassandra.net.MessageOut.<init>:(Lorg/apache/cassandra/net/MessagingService$Verb;)V
putstatic org.apache.cassandra.net.OutboundTcpConnection.CLOSE_SENTINEL:Lorg/apache/cassandra/net/MessageOut;
23: ldc "cassandra.otc_backlog_purge_size"
sipush 1024
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic org.apache.cassandra.net.OutboundTcpConnection.BACKLOG_PURGE_SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
4 22 0 strategy Ljava/lang/String;
13 22 2 coalescingWindow I
20 22 3 otc_backlog_expiration_interval_in_ms I
private static org.apache.cassandra.utils.CoalescingStrategies$CoalescingStrategy newCoalescingStrategy(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcCoalescingStrategy:()Ljava/lang/String;
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcCoalescingWindow:()I
2: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
3: aload 0
4: invokestatic org.apache.cassandra.utils.CoalescingStrategies.newCoalescingStrategy:(Ljava/lang/String;ILorg/slf4j/Logger;Ljava/lang/String;)Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 displayName Ljava/lang/String;
MethodParameters:
Name Flags
displayName
public void <init>(org.apache.cassandra.net.OutboundTcpConnectionPool, java.lang.String);
descriptor: (Lorg/apache/cassandra/net/OutboundTcpConnectionPool;Ljava/lang/String;)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
new java.lang.StringBuilder
dup
ldc "MessagingService-Outgoing-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.util.concurrent.FastThreadLocalThread.<init>:(Ljava/lang/String;)V
1: aload 0
iconst_0
putfield org.apache.cassandra.net.OutboundTcpConnection.isStopped:Z
2: aload 0
new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
putfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
3: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.apache.cassandra.net.OutboundTcpConnection.backlogExpirationActive:Ljava/util/concurrent/atomic/AtomicBoolean;
4: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
5: aload 0
iconst_0
putfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
6: aload 0
aload 1
putfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
7: aload 0
aload 1
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokestatic org.apache.cassandra.net.OutboundTcpConnection.newCoalescingStrategy:(Ljava/lang/String;)Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
putfield org.apache.cassandra.net.OutboundTcpConnection.cs:Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
8: aload 0
invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 1
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.net.MessagingService.getVersion:(Ljava/net/InetAddress;)I
putfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 10 1 pool Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
0 10 2 name Ljava/lang/String;
MethodParameters:
Name Flags
pool
name
private static boolean isLocalDC(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 0
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
astore 1
start local 1 1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 targetHost Ljava/net/InetAddress;
1 3 1 remoteDC Ljava/lang/String;
2 3 2 localDC Ljava/lang/String;
MethodParameters:
Name Flags
targetHost
public void enqueue(org.apache.cassandra.net.MessageOut<?>, );
descriptor: (Lorg/apache/cassandra/net/MessageOut;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 1: aload 0
lload 3
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.expireMessages:(J)V
2: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
new org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage
dup
aload 1
iload 2
lload 3
invokespecial org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.<init>:(Lorg/apache/cassandra/net/MessageOut;IJ)V
invokeinterface java.util.concurrent.BlockingQueue.put:(Ljava/lang/Object;)V
3: goto 6
4: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection org.apache.cassandra.net.MessageOut int long
StackMap stack: java.lang.InterruptedException
astore 5
start local 5 5: new java.lang.AssertionError
dup
aload 5
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 6: StackMap locals:
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/net/OutboundTcpConnection;
0 7 1 message Lorg/apache/cassandra/net/MessageOut<*>;
0 7 2 id I
1 7 3 nanoTime J
5 6 5 e Ljava/lang/InterruptedException;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
Signature: (Lorg/apache/cassandra/net/MessageOut<*>;I)V
MethodParameters:
Name Flags
message
id
boolean backlogContainsExpiredMessages(long);
descriptor: (J)Z
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.stream:()Ljava/util/stream/Stream;
lload 1
invokedynamic test(J)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/apache/cassandra/net/OutboundTcpConnection.lambda$0(JLorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;)Z (6)
(Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 1 1 nowNanos J
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
nowNanos
void closeSocket(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Enqueuing socket close for {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
iload 1
putfield org.apache.cassandra.net.OutboundTcpConnection.isStopped:Z
2: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.clear:()V
3: aload 0
getstatic org.apache.cassandra.net.OutboundTcpConnection.CLOSE_SENTINEL:Lorg/apache/cassandra/net/MessageOut;
iconst_m1
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.enqueue:(Lorg/apache/cassandra/net/MessageOut;I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 5 1 destroyThread Z
MethodParameters:
Name Flags
destroyThread
void softCloseSocket();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.net.OutboundTcpConnection.CLOSE_SENTINEL:Lorg/apache/cassandra/net/MessageOut;
iconst_m1
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.enqueue:(Lorg/apache/cassandra/net/MessageOut;I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
public int getTargetVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
sipush 128
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: goto 31
2: StackMap locals: java.util.List
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.cs:Lorg/apache/cassandra/utils/CoalescingStrategies$CoalescingStrategy;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
aload 1
sipush 128
invokevirtual org.apache.cassandra.utils.CoalescingStrategies$CoalescingStrategy.coalesce:(Ljava/util/concurrent/BlockingQueue;Ljava/util/List;I)V
3: goto 6
4: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 2
start local 2 5: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface java.util.List.size:()I
dup_x1
putfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
istore 2
start local 2 7: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 28
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage
astore 3
start local 3 9: aload 3
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
astore 5
start local 5 10: aload 5
getstatic org.apache.cassandra.net.OutboundTcpConnection.CLOSE_SENTINEL:Lorg/apache/cassandra/net/MessageOut;
if_acmpne 14
11: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
12: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.isStopped:Z
ifeq 28
13: goto 32
14: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage java.util.Iterator org.apache.cassandra.net.MessageOut
StackMap stack:
aload 3
invokestatic java.lang.System.nanoTime:()J
invokevirtual org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.isTimedOut:(J)Z
ifeq 16
15: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
pop2
goto 27
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
ifnonnull 17
aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.connect:()Z
ifeq 20
17: StackMap locals:
StackMap stack:
aload 0
aload 3
iload 2
iconst_1
if_icmpne 18
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.isEmpty:()Z
ifeq 18
iconst_1
goto 19
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage java.util.Iterator org.apache.cassandra.net.MessageOut
StackMap stack: org.apache.cassandra.net.OutboundTcpConnection org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage
18: iconst_0
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage java.util.Iterator org.apache.cassandra.net.MessageOut
StackMap stack: org.apache.cassandra.net.OutboundTcpConnection org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage int
19: invokevirtual org.apache.cassandra.net.OutboundTcpConnection.writeConnected:(Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;Z)V
goto 27
20: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.size:()I
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
21: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.clear:()V
22: aload 0
iconst_0
putfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
23: goto 29
end local 5 24: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage java.util.Iterator
StackMap stack: java.lang.Exception
astore 5
start local 5 25: aload 5
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
26: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "error processing a message intended for {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aload 5
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 5 27: StackMap locals:
StackMap stack:
aload 0
iinc 2 -1
iload 2
putfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
end local 3 28: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
29: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.util.List int
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
30: aload 1
invokeinterface java.util.List.clear:()V
end local 2 31: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.isStopped:Z
ifeq 2
32: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
1 33 1 drainedMessages Ljava/util/List<Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;>;
5 6 2 e Ljava/lang/InterruptedException;
7 31 2 count I
9 28 3 qm Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;
10 24 5 m Lorg/apache/cassandra/net/MessageOut<*>;
25 27 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
9 13 24 Class java.lang.Exception
14 23 24 Class java.lang.Exception
public int getPendingMessages();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.size:()I
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.currentMsgBufferCount:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
public long getCompletedMesssages();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.completed:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
public long getDroppedMessages();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
private boolean shouldCompressConnection();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.internodeCompression:()Lorg/apache/cassandra/config/Config$InternodeCompression;
getstatic org.apache.cassandra.config.Config$InternodeCompression.all:Lorg/apache/cassandra/config/Config$InternodeCompression;
if_acmpeq 3
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.internodeCompression:()Lorg/apache/cassandra/config/Config$InternodeCompression;
getstatic org.apache.cassandra.config.Config$InternodeCompression.dc:Lorg/apache/cassandra/config/Config$InternodeCompression;
if_acmpne 2
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokestatic org.apache.cassandra.net.OutboundTcpConnection.isLocalDC:(Ljava/net/InetAddress;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
private void writeConnected(org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage, boolean);
descriptor: (Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
getfield org.apache.cassandra.net.MessageOut.parameters:Ljava/util/Map;
ldc "TraceSession"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
astore 3
start local 3 1: aload 3
ifnull 15
2: aload 3
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.UUIDGen.getUUID:(Ljava/nio/ByteBuffer;)Ljava/util/UUID;
astore 4
start local 4 3: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
aload 4
invokevirtual org.apache.cassandra.tracing.Tracing.get:(Ljava/util/UUID;)Lorg/apache/cassandra/tracing/TraceState;
astore 5
start local 5 4: ldc "Sending %s message to %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
getfield org.apache.cassandra.net.MessageOut.verb:Lorg/apache/cassandra/net/MessagingService$Verb;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 6
start local 6 5: aload 5
ifnonnull 12
6: aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
getfield org.apache.cassandra.net.MessageOut.parameters:Ljava/util/Map;
ldc "TraceType"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
astore 7
start local 7 7: aload 7
ifnonnull 8
getstatic org.apache.cassandra.tracing.Tracing$TraceType.QUERY:Lorg/apache/cassandra/tracing/Tracing$TraceType;
goto 9
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage int byte[] java.util.UUID org.apache.cassandra.tracing.TraceState java.lang.String byte[]
StackMap stack:
8: aload 7
iconst_0
baload
invokestatic org.apache.cassandra.tracing.Tracing$TraceType.deserialize:(B)Lorg/apache/cassandra/tracing/Tracing$TraceType;
StackMap locals:
StackMap stack: org.apache.cassandra.tracing.Tracing$TraceType
9: astore 8
start local 8 10: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
aload 3
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
aload 6
aload 8
invokevirtual org.apache.cassandra.tracing.Tracing$TraceType.getTTL:()I
invokevirtual org.apache.cassandra.tracing.Tracing.trace:(Ljava/nio/ByteBuffer;Ljava/lang/String;I)V
end local 8 end local 7 11: goto 15
12: StackMap locals:
StackMap stack:
aload 5
aload 6
invokevirtual org.apache.cassandra.tracing.TraceState.trace:(Ljava/lang/String;)V
13: aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
getfield org.apache.cassandra.net.MessageOut.verb:Lorg/apache/cassandra/net/MessagingService$Verb;
getstatic org.apache.cassandra.net.MessagingService$Verb.REQUEST_RESPONSE:Lorg/apache/cassandra/net/MessagingService$Verb;
if_acmpne 15
14: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
aload 5
invokevirtual org.apache.cassandra.tracing.Tracing.doneWithNonLocalSession:(Lorg/apache/cassandra/tracing/TraceState;)V
end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.timestampNanos:J
invokestatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.convert:(J)J
lstore 4
start local 4 16: aload 0
aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.message:Lorg/apache/cassandra/net/MessageOut;
aload 1
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.id:I
lload 4
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.writeInternal:(Lorg/apache/cassandra/net/MessageOut;IJ)V
17: aload 0
dup
getfield org.apache.cassandra.net.OutboundTcpConnection.completed:J
lconst_1
ladd
putfield org.apache.cassandra.net.OutboundTcpConnection.completed:J
18: iload 2
ifeq 32
19: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.flush:()V
end local 4 end local 3 20: goto 32
21: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage int
StackMap stack: java.lang.Throwable
astore 3
start local 3 22: aload 3
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
23: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
24: aload 3
instanceof java.io.IOException
ifne 25
aload 3
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
instanceof java.io.IOException
ifeq 31
25: StackMap locals: java.lang.Throwable
StackMap stack:
getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Error writing to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aload 3
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
26: aload 1
invokevirtual org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.shouldRetry:()Z
ifeq 32
27: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
new org.apache.cassandra.net.OutboundTcpConnection$RetriedQueuedMessage
dup
aload 1
invokespecial org.apache.cassandra.net.OutboundTcpConnection$RetriedQueuedMessage.<init>:(Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;)V
invokeinterface java.util.concurrent.BlockingQueue.put:(Ljava/lang/Object;)V
28: goto 32
29: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 4
start local 4 30: new java.lang.AssertionError
dup
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 4 31: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "error writing to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aload 3
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 32: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 33 1 qm Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;
0 33 2 flush Z
1 20 3 sessionBytes [B
3 15 4 sessionId Ljava/util/UUID;
4 15 5 state Lorg/apache/cassandra/tracing/TraceState;
5 15 6 message Ljava/lang/String;
7 11 7 traceTypeBytes [B
10 11 8 traceType Lorg/apache/cassandra/tracing/Tracing$TraceType;
16 20 4 timestampMillis J
22 32 3 e Ljava/lang/Throwable;
30 31 4 e1 Ljava/lang/InterruptedException;
Exception table:
from to target type
0 20 21 Class java.lang.Throwable
27 28 29 Class java.lang.InterruptedException
MethodParameters:
Name Flags
qm
flush
private void writeInternal(org.apache.cassandra.net.MessageOut<?>, int, );
descriptor: (Lorg/apache/cassandra/net/MessageOut;IJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
ldc -900387334
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeInt:(I)V
1: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
bipush 7
if_icmpge 3
2: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeUTF:(Ljava/lang/String;)V
goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
iload 2
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeInt:(I)V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
lload 3
l2i
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeInt:(I)V
5: aload 1
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
invokevirtual org.apache.cassandra.net.MessageOut.serialize:(Lorg/apache/cassandra/io/util/DataOutputPlus;I)V
6: 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/net/OutboundTcpConnection;
0 7 1 message Lorg/apache/cassandra/net/MessageOut<*>;
0 7 2 id I
0 7 3 timestamp J
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/cassandra/net/MessageOut<*>;IJ)V
MethodParameters:
Name Flags
message
id
timestamp
private static void writeHeader(java.io.DataOutput, int, boolean);
descriptor: (Ljava/io/DataOutput;IZ)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 2
ifeq 3
2: iload 3
iconst_4
ior
istore 3
3: StackMap locals: int
StackMap stack:
iload 3
iload 1
bipush 8
ishl
ior
istore 3
4: aload 0
iload 3
invokeinterface java.io.DataOutput.writeInt:(I)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 out Ljava/io/DataOutput;
0 6 1 version I
0 6 2 compressionEnabled Z
1 6 3 header I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
version
compressionEnabled
private void disconnect();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
ifnull 8
1: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
2: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Socket to {} closed"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
3: goto 6
4: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 5: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Exception closing connection to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 1 6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
7: aload 0
aconst_null
putfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
5 6 1 e Ljava/io/IOException;
Exception table:
from to target type
1 3 4 Class java.io.IOException
private boolean connect();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=10, args_size=1
start local 0 0: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Attempting to connect to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
1: invokestatic java.lang.System.nanoTime:()J
lstore 1
start local 1 2: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRpcTimeout:()J
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 3
start local 3 3: goto 74
4: StackMap locals: long long
StackMap stack:
aload 0
invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.net.MessagingService.getVersion:(Ljava/net/InetAddress;)I
putfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
5: aload 0
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.newSocket:()Ljava/net/Socket;
putfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
6: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
iconst_1
invokevirtual java.net.Socket.setKeepAlive:(Z)V
7: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokestatic org.apache.cassandra.net.OutboundTcpConnection.isLocalDC:(Ljava/net/InetAddress;)Z
ifeq 10
8: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
getstatic org.apache.cassandra.net.OutboundTcpConnection.INTRADC_TCP_NODELAY:Z
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getInterDCTcpNoDelay:()Z
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
11: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getInternodeSendBufferSize:()I
ifle 16
12: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getInternodeSendBufferSize:()I
invokevirtual java.net.Socket.setSendBufferSize:(I)V
13: goto 16
14: StackMap locals:
StackMap stack: java.net.SocketException
astore 5
start local 5 15: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Failed to set send buffer size on internode socket."
aload 5
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getChannel:()Ljava/nio/channels/SocketChannel;
astore 5
start local 5 17: aload 0
18: new org.apache.cassandra.io.util.BufferedDataOutputStreamPlus
dup
aload 5
ifnull 19
aload 5
goto 20
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection long long java.nio.channels.WritableByteChannel
StackMap stack: org.apache.cassandra.net.OutboundTcpConnection new 18 new 18
19: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokestatic java.nio.channels.Channels.newChannel:(Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel;
StackMap locals: org.apache.cassandra.net.OutboundTcpConnection long long java.nio.channels.WritableByteChannel
StackMap stack: org.apache.cassandra.net.OutboundTcpConnection new 18 new 18 java.nio.channels.WritableByteChannel
20: getstatic org.apache.cassandra.net.OutboundTcpConnection.BUFFER_SIZE:I
invokespecial org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.<init>:(Ljava/nio/channels/WritableByteChannel;I)V
putfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
21: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
ldc -900387334
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeInt:(I)V
22: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.shouldCompressConnection:()Z
invokestatic org.apache.cassandra.net.OutboundTcpConnection.writeHeader:(Ljava/io/DataOutput;IZ)V
23: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.flush:()V
24: new java.io.DataInputStream
dup
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 6
start local 6 25: aload 0
aload 6
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.handshakeVersion:(Ljava/io/DataInputStream;)I
istore 7
start local 7 26: iload 7
ldc -2147483648
if_icmpne 30
27: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Target max version is {}; no version information yet, will retry"
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
28: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
29: goto 74
30: StackMap locals: java.io.DataInputStream int
StackMap stack:
invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
iload 7
invokevirtual org.apache.cassandra.net.MessagingService.setVersion:(Ljava/net/InetAddress;I)I
pop
31: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
iload 7
if_icmple 43
32: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Target max version is {}; will reconnect with that version"
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
33: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getSeeds:()Ljava/util/Set;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 41
34: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Seed gossip version is {}; will not connect with that version"
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
35: goto 41
36: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
start local 8 37: aload 8
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
38: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Configuration error prevented outbound connection: {}"
aload 8
invokevirtual java.lang.Throwable.getLocalizedMessage:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
end local 8 39: goto 41
40: StackMap locals:
StackMap stack: java.lang.Throwable
pop
41: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
42: iconst_0
ireturn
43: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
iload 7
if_icmpge 48
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
getstatic org.apache.cassandra.net.MessagingService.current_version:I
if_icmpge 48
44: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Detected higher max version {} (using {}); will reconnect when queued messages are done"
45: iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
46: invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
47: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.softCloseSocket:()V
48: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
getstatic org.apache.cassandra.net.MessagingService.current_version:I
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.writeInt:(I)V
49: invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
invokestatic org.apache.cassandra.net.CompactEndpointSerializationHelper.serialize:(Ljava/net/InetAddress;Ljava/io/DataOutput;)V
50: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.shouldCompressConnection:()Z
ifeq 64
51: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
invokevirtual org.apache.cassandra.io.util.DataOutputStreamPlus.flush:()V
52: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Upgrading OutputStream to {} to be compressed"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
53: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.targetVersion:I
bipush 8
if_icmpge 56
54: aload 0
new org.apache.cassandra.io.util.WrappedDataOutputStreamPlus
dup
new org.xerial.snappy.SnappyOutputStream
dup
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokespecial org.xerial.snappy.SnappyOutputStream.<init>:(Ljava/io/OutputStream;)V
invokespecial org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.<init>:(Ljava/io/OutputStream;)V
putfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
55: goto 64
56: StackMap locals:
StackMap stack:
invokestatic net.jpountz.lz4.LZ4Factory.fastestInstance:()Lnet/jpountz/lz4/LZ4Factory;
invokevirtual net.jpountz.lz4.LZ4Factory.fastCompressor:()Lnet/jpountz/lz4/LZ4Compressor;
astore 8
start local 8 57: invokestatic net.jpountz.xxhash.XXHashFactory.fastestInstance:()Lnet/jpountz/xxhash/XXHashFactory;
ldc -1756908916
invokevirtual net.jpountz.xxhash.XXHashFactory.newStreamingHash32:(I)Lnet/jpountz/xxhash/StreamingXXHash32;
invokevirtual net.jpountz.xxhash.StreamingXXHash32.asChecksum:()Ljava/util/zip/Checksum;
astore 9
start local 9 58: aload 0
new org.apache.cassandra.io.util.WrappedDataOutputStreamPlus
dup
new net.jpountz.lz4.LZ4BlockOutputStream
dup
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
59: sipush 16384
60: aload 8
61: aload 9
62: iconst_1
invokespecial net.jpountz.lz4.LZ4BlockOutputStream.<init>:(Ljava/io/OutputStream;ILnet/jpountz/lz4/LZ4Compressor;Ljava/util/zip/Checksum;Z)V
invokespecial org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.<init>:(Ljava/io/OutputStream;)V
63: putfield org.apache.cassandra.net.OutboundTcpConnection.out:Lorg/apache/cassandra/io/util/DataOutputStreamPlus;
end local 9 end local 8 64: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Done connecting to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
65: iconst_1
ireturn
end local 7 end local 6 end local 5 66: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection long long
StackMap stack: javax.net.ssl.SSLHandshakeException
astore 5
start local 5 67: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
new java.lang.StringBuilder
dup
ldc "SSL handshake error for outbound connection to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.socket:Ljava/net/Socket;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
68: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
69: iconst_0
ireturn
end local 5 70: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 71: aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.disconnect:()V
72: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Unable to connect to {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
aload 5
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
73: ldc 100
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly:(JLjava/util/concurrent/TimeUnit;)V
end local 5 74: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lload 1
lsub
lload 3
lcmp
ifge 75
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.isStopped:Z
ifeq 4
75: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 76 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
2 76 1 start J
3 76 3 timeout J
15 16 5 se Ljava/net/SocketException;
17 66 5 ch Ljava/nio/channels/WritableByteChannel;
25 66 6 in Ljava/io/DataInputStream;
26 66 7 maxTargetVersion I
37 39 8 e Ljava/lang/Throwable;
57 64 8 compressor Lnet/jpountz/lz4/LZ4Compressor;
58 64 9 checksum Ljava/util/zip/Checksum;
67 70 5 e Ljavax/net/ssl/SSLHandshakeException;
71 74 5 e Ljava/io/IOException;
Exception table:
from to target type
12 13 14 Class java.net.SocketException
33 35 36 Class java.lang.Throwable
33 39 40 any
5 29 66 Class javax.net.ssl.SSLHandshakeException
30 42 66 Class javax.net.ssl.SSLHandshakeException
43 65 66 Class javax.net.ssl.SSLHandshakeException
5 29 70 Class java.io.IOException
30 42 70 Class java.io.IOException
43 65 70 Class java.io.IOException
private int handshakeVersion(java.io.DataInputStream);
descriptor: (Ljava/io/DataInputStream;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.util.concurrent.atomic.AtomicInteger
dup
ldc -2147483648
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
astore 2
start local 2 1: new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
astore 3
start local 3 2: aload 0
aload 3
aload 2
aload 1
invokedynamic run(Lorg/apache/cassandra/net/OutboundTcpConnection;Ljava/util/concurrent/CountDownLatch;Ljava/util/concurrent/atomic/AtomicInteger;Ljava/io/DataInputStream;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/apache/cassandra/net/OutboundTcpConnection.lambda$1(Ljava/util/concurrent/CountDownLatch;Ljava/util/concurrent/atomic/AtomicInteger;Ljava/io/DataInputStream;)V (7)
()V
3: new java.lang.StringBuilder
dup
ldc "HANDSHAKE-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
5: invokevirtual java.lang.Thread.start:()V
6: aload 3
ldc 5000
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
pop
7: goto 10
8: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection java.io.DataInputStream java.util.concurrent.atomic.AtomicInteger java.util.concurrent.CountDownLatch
StackMap stack: java.lang.InterruptedException
astore 4
start local 4 9: new java.lang.AssertionError
dup
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 11 1 inputStream Ljava/io/DataInputStream;
1 11 2 version Ljava/util/concurrent/atomic/AtomicInteger;
2 11 3 versionLatch Ljava/util/concurrent/CountDownLatch;
9 10 4 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
6 7 8 Class java.lang.InterruptedException
MethodParameters:
Name Flags
inputStream final
void expireMessages(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.size:()I
getstatic org.apache.cassandra.net.OutboundTcpConnection.BACKLOG_PURGE_SIZE:I
if_icmpgt 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlogNextExpirationTime:J
lload 1
lsub
lconst_0
lcmp
ifle 4
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlogExpirationActive:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 27
5: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlog:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.iterator:()Ljava/util/Iterator;
astore 3
start local 3 6: goto 14
7: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage
astore 4
start local 4 8: aload 4
getfield org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.droppable:Z
ifne 10
9: goto 14
10: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage
StackMap stack:
aload 4
lload 1
invokevirtual org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.isTimedOut:(J)Z
ifne 12
11: goto 14
12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.remove:()V
13: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.dropped:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
pop2
end local 4 14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
15: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 24
16: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic java.lang.System.nanoTime:()J
lload 1
lsub
invokevirtual java.util.concurrent.TimeUnit.toMicros:(J)J
lstore 4
start local 4 17: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Expiration of {} took {}\u03BCs"
aload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection.getName:()Ljava/lang/String;
lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 end local 3 18: goto 24
19: StackMap locals: org.apache.cassandra.net.OutboundTcpConnection long
StackMap stack: java.lang.Throwable
astore 6
20: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcBacklogExpirationInterval:()I
i2l
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 7
start local 7 21: aload 0
lload 1
lload 7
ladd
putfield org.apache.cassandra.net.OutboundTcpConnection.backlogNextExpirationTime:J
22: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlogExpirationActive:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
end local 7 23: aload 6
athrow
24: StackMap locals:
StackMap stack:
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getOtcBacklogExpirationInterval:()I
i2l
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 7
start local 7 25: aload 0
lload 1
lload 7
ladd
putfield org.apache.cassandra.net.OutboundTcpConnection.backlogNextExpirationTime:J
26: aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.backlogExpirationActive:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
end local 7 27: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
0 28 1 timestampNanos J
6 18 3 iter Ljava/util/Iterator<Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;>;
8 14 4 qm Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;
17 18 4 duration J
21 23 7 backlogExpirationIntervalNanos J
25 27 7 backlogExpirationIntervalNanos J
Exception table:
from to target type
5 19 19 any
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
timestampNanos
private static boolean lambda$0(long, org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage);
descriptor: (JLorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
start local 2 0: aload 2
lload 0
invokevirtual org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage.isTimedOut:(J)Z
ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 entry Lorg/apache/cassandra/net/OutboundTcpConnection$QueuedMessage;
private void lambda$1(java.util.concurrent.CountDownLatch, java.util.concurrent.atomic.AtomicInteger, java.io.DataInputStream);
descriptor: (Ljava/util/concurrent/CountDownLatch;Ljava/util/concurrent/atomic/AtomicInteger;Ljava/io/DataInputStream;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=7, args_size=4
start local 0 0: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
ldc "Handshaking version with {}"
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 2
aload 3
invokevirtual java.io.DataInputStream.readInt:()I
invokevirtual java.util.concurrent.atomic.AtomicInteger.set:(I)V
2: goto 12
3: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 4: new java.lang.StringBuilder
dup
ldc "Cannot handshake version with "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.net.OutboundTcpConnection.poolReference:Lorg/apache/cassandra/net/OutboundTcpConnectionPool;
invokevirtual org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 5: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 7
6: getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
aload 5
aload 4
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
goto 8
7: StackMap locals: java.io.IOException java.lang.String
StackMap stack:
getstatic org.apache.cassandra.net.OutboundTcpConnection.logger:Lorg/slf4j/Logger;
aload 5
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
end local 5 end local 4 8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
goto 13
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
10: aload 1
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
11: aload 6
athrow
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/net/OutboundTcpConnection;
4 8 4 ex Ljava/io/IOException;
5 8 5 msg Ljava/lang/String;
Exception table:
from to target type
0 2 3 Class java.io.IOException
0 8 9 any
}
SourceFile: "OutboundTcpConnection.java"
NestMembers:
org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage org.apache.cassandra.net.OutboundTcpConnection$RetriedQueuedMessage
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final InternodeCompression = org.apache.cassandra.config.Config$InternodeCompression of org.apache.cassandra.config.Config
public Verb = org.apache.cassandra.net.MessagingService$Verb of org.apache.cassandra.net.MessagingService
private QueuedMessage = org.apache.cassandra.net.OutboundTcpConnection$QueuedMessage of org.apache.cassandra.net.OutboundTcpConnection
private RetriedQueuedMessage = org.apache.cassandra.net.OutboundTcpConnection$RetriedQueuedMessage of org.apache.cassandra.net.OutboundTcpConnection
public final TraceType = org.apache.cassandra.tracing.Tracing$TraceType of org.apache.cassandra.tracing.Tracing
public abstract Coalescable = org.apache.cassandra.utils.CoalescingStrategies$Coalescable of org.apache.cassandra.utils.CoalescingStrategies
public abstract CoalescingStrategy = org.apache.cassandra.utils.CoalescingStrategies$CoalescingStrategy of org.apache.cassandra.utils.CoalescingStrategies