class org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
super_class: java.lang.Object
{
private final java.util.UUID id;
descriptor: Ljava/util/UUID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long writtenAt;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<org.apache.cassandra.db.Mutation> mutations;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
private final int replayedBytes;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.List<org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<org.apache.cassandra.db.Mutation>> replayHandlers;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;>;
void <init>(java.util.UUID, int, java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/UUID;ILjava/util/List;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.id:Ljava/util/UUID;
2: aload 0
aload 1
invokestatic org.apache.cassandra.utils.UUIDGen.unixTimestamp:(Ljava/util/UUID;)J
putfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
3: aload 0
new java.util.ArrayList
dup
aload 3
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
4: aload 0
aload 0
iload 2
aload 3
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.addMutations:(ILjava/util/List;)I
putfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayedBytes:I
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 6 1 id Ljava/util/UUID;
0 6 2 version I
0 6 3 serializedMutations Ljava/util/List<Ljava/nio/ByteBuffer;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/UUID;ILjava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
id
version
serializedMutations
public int replay(com.google.common.util.concurrent.RateLimiter, java.util.Set<java.net.InetAddress>);
descriptor: (Lcom/google/common/util/concurrent/RateLimiter;Ljava/util/Set;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Replaying batch {}"
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.id:Ljava/util/UUID;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
invokestatic org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.gcgs:(Ljava/util/Collection;)I
istore 3
start local 3 4: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
invokevirtual java.util.concurrent.TimeUnit.toSeconds:(J)J
iload 3
i2l
ladd
invokestatic org.apache.cassandra.utils.FBUtilities.nowInSeconds:()I
i2l
lcmp
ifgt 6
5: iconst_0
ireturn
6: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
aload 2
invokestatic org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.sendReplays:(Ljava/util/List;JLjava/util/Set;)Ljava/util/List;
putfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
7: aload 1
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayedBytes:I
invokevirtual com.google.common.util.concurrent.RateLimiter.acquire:(I)D
pop2
8: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 9 1 rateLimiter Lcom/google/common/util/concurrent/RateLimiter;
0 9 2 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
4 9 3 gcgs I
Exceptions:
throws java.io.IOException
Signature: (Lcom/google/common/util/concurrent/RateLimiter;Ljava/util/Set<Ljava/net/InetAddress;>;)I
MethodParameters:
Name Flags
rateLimiter
hintedNodes
public void finish(java.util.Set<java.net.InetAddress>);
descriptor: (Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 11
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler
astore 3
start local 3 3: aload 3
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler.get:()V
4: goto 10
5: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch java.util.Set int org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler
StackMap stack: org.apache.cassandra.exceptions.RequestExecutionException
astore 4
start local 4 6: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Failed replaying a batched mutation to a node, will write a hint"
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;)V
7: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Failure was : {}"
aload 4
invokevirtual org.apache.cassandra.exceptions.RequestExecutionException.getMessage:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
8: aload 0
iload 2
aload 1
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writeHintsForUndeliveredEndpoints:(ILjava/util/Set;)V
9: return
end local 4 end local 3 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 13 1 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
1 12 2 i I
3 10 3 handler Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;
6 10 4 e Lorg/apache/cassandra/exceptions/RequestExecutionException;
Exception table:
from to target type
3 4 5 Class org.apache.cassandra.exceptions.WriteTimeoutException
3 4 5 Class org.apache.cassandra.exceptions.WriteFailureException
Signature: (Ljava/util/Set<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
hintedNodes
private int addMutations(int, java.util.List<java.nio.ByteBuffer>);
descriptor: (ILjava/util/List;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch int java.util.List int top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 4
start local 4 3: iload 3
aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
istore 3
4: aconst_null
astore 6
aconst_null
astore 7
5: new org.apache.cassandra.io.util.DataInputBuffer
dup
aload 4
iconst_1
invokespecial org.apache.cassandra.io.util.DataInputBuffer.<init>:(Ljava/nio/ByteBuffer;Z)V
astore 8
start local 8 6: aload 0
getstatic org.apache.cassandra.db.Mutation.serializer:Lorg/apache/cassandra/db/Mutation$MutationSerializer;
aload 8
iload 1
invokevirtual org.apache.cassandra.db.Mutation$MutationSerializer.deserialize:(Lorg/apache/cassandra/io/util/DataInputPlus;I)Lorg/apache/cassandra/db/Mutation;
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.addMutation:(Lorg/apache/cassandra/db/Mutation;)V
7: aload 8
ifnull 13
aload 8
invokevirtual org.apache.cassandra.io.util.DataInputBuffer.close:()V
goto 13
StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch int java.util.List int java.nio.ByteBuffer java.util.Iterator java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataInputBuffer
StackMap stack: java.lang.Throwable
8: astore 6
aload 8
ifnull 9
aload 8
invokevirtual org.apache.cassandra.io.util.DataInputBuffer.close:()V
end local 8 StackMap locals:
StackMap stack:
9: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 7
aload 6
ifnonnull 11
aload 7
astore 6
goto 12
StackMap locals:
StackMap stack:
11: aload 6
aload 7
if_acmpeq 12
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 6
athrow
end local 4 13: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch int java.util.List int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
14: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 15 1 version I
0 15 2 serializedMutations Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 15 3 ret I
3 13 4 serializedMutation Ljava/nio/ByteBuffer;
6 9 8 in Lorg/apache/cassandra/io/util/DataInputBuffer;
Exception table:
from to target type
6 7 8 any
5 10 10 any
Exceptions:
throws java.io.IOException
Signature: (ILjava/util/List<Ljava/nio/ByteBuffer;>;)I
MethodParameters:
Name Flags
version
serializedMutations
private void addMutation(org.apache.cassandra.db.Mutation);
descriptor: (Lorg/apache/cassandra/db/Mutation;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.db.Mutation.getColumnFamilyIds:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch org.apache.cassandra.db.Mutation top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.UUID
astore 2
start local 2 2: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
aload 2
invokestatic org.apache.cassandra.db.SystemKeyspace.getTruncatedAt:(Ljava/util/UUID;)J
lcmp
ifgt 4
3: aload 1
aload 2
invokevirtual org.apache.cassandra.db.Mutation.without:(Ljava/util/UUID;)Lorg/apache/cassandra/db/Mutation;
astore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aload 1
invokevirtual org.apache.cassandra.db.Mutation.isEmpty:()Z
ifne 7
6: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch org.apache.cassandra.db.Mutation
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 8 1 mutation Lorg/apache/cassandra/db/Mutation;
2 4 2 cfId Ljava/util/UUID;
MethodParameters:
Name Flags
mutation
private void writeHintsForUndeliveredEndpoints(int, java.util.Set<java.net.InetAddress>);
descriptor: (ILjava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
invokestatic org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.gcgs:(Ljava/util/Collection;)I
istore 3
start local 3 1: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
invokevirtual java.util.concurrent.TimeUnit.toSeconds:(J)J
iload 3
i2l
ladd
invokestatic org.apache.cassandra.utils.FBUtilities.nowInSeconds:()I
i2l
lcmp
ifgt 3
2: return
3: StackMap locals: int
StackMap stack:
iload 1
istore 4
start local 4 4: goto 13
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler
astore 5
start local 5 6: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.mutations:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 6
start local 6 7: aload 5
ifnull 12
8: aload 2
aload 5
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler.undelivered:Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
9: getstatic org.apache.cassandra.hints.HintsService.instance:Lorg/apache/cassandra/hints/HintsService;
aload 5
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler.undelivered:Ljava/util/Set;
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic apply(Lorg/apache/cassandra/service/StorageService;)Lcom/google/common/base/Function;
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;)Ljava/lang/Object;
org/apache/cassandra/service/StorageService.getHostIdForEndpoint(Ljava/net/InetAddress;)Ljava/util/UUID; (5)
(Ljava/net/InetAddress;)Ljava/util/UUID;
invokestatic com.google.common.collect.Iterables.transform:(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable;
10: aload 6
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.writtenAt:J
invokestatic org.apache.cassandra.hints.Hint.create:(Lorg/apache/cassandra/db/Mutation;J)Lorg/apache/cassandra/hints/Hint;
11: invokevirtual org.apache.cassandra.hints.HintsService.write:(Ljava/lang/Iterable;Lorg/apache/cassandra/hints/Hint;)V
end local 6 end local 5 12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replayHandlers:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 4 14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
0 15 1 startFrom I
0 15 2 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
1 15 3 gcgs I
4 14 4 i I
6 12 5 handler Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;
7 12 6 undeliveredMutation Lorg/apache/cassandra/db/Mutation;
Signature: (ILjava/util/Set<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
startFrom
hintedNodes
private static java.util.List<org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<org.apache.cassandra.db.Mutation>> sendReplays(java.util.List<org.apache.cassandra.db.Mutation>, long, java.util.Set<java.net.InetAddress>);
descriptor: (Ljava/util/List;JLjava/util/Set;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 3 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: java.util.List long java.util.Set java.util.List top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 5
start local 5 3: aload 5
lload 1
aload 3
invokestatic org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.sendSingleReplayMutation:(Lorg/apache/cassandra/db/Mutation;JLjava/util/Set;)Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler;
astore 7
start local 7 4: aload 7
ifnull 6
5: aload 4
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 4
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 mutations Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
0 8 1 writtenAt J
0 8 3 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
1 8 4 handlers Ljava/util/List<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;>;
3 6 5 mutation Lorg/apache/cassandra/db/Mutation;
4 6 7 handler Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;
Signature: (Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;JLjava/util/Set<Ljava/net/InetAddress;>;)Ljava/util/List<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;>;
MethodParameters:
Name Flags
mutations
writtenAt
hintedNodes
private static org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<org.apache.cassandra.db.Mutation> sendSingleReplayMutation(org.apache.cassandra.db.Mutation, long, java.util.Set<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/db/Mutation;JLjava/util/Set;)Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=11, args_size=3
start local 0 start local 1 start local 3 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 4
start local 4 1: aload 0
invokevirtual org.apache.cassandra.db.Mutation.getKeyspaceName:()Ljava/lang/String;
astore 5
start local 5 2: aload 0
invokevirtual org.apache.cassandra.db.Mutation.key:()Lorg/apache/cassandra/db/DecoratedKey;
invokevirtual org.apache.cassandra.db.DecoratedKey.getToken:()Lorg/apache/cassandra/dht/Token;
astore 6
start local 6 3: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
aload 5
aload 6
invokevirtual org.apache.cassandra.service.StorageService.getNaturalAndPendingEndpoints:(Ljava/lang/String;Lorg/apache/cassandra/dht/Token;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 8
goto 15
StackMap locals: org.apache.cassandra.db.Mutation long java.util.Set java.util.Set java.lang.String org.apache.cassandra.dht.Token top java.util.Iterator
StackMap stack:
4: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 7
start local 7 5: aload 7
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 0
invokevirtual org.apache.cassandra.db.Mutation.apply:()V
7: goto 15
8: StackMap locals: org.apache.cassandra.db.Mutation long java.util.Set java.util.Set java.lang.String org.apache.cassandra.dht.Token java.net.InetAddress java.util.Iterator
StackMap stack:
getstatic org.apache.cassandra.gms.FailureDetector.instance:Lorg/apache/cassandra/gms/IFailureDetector;
aload 7
invokeinterface org.apache.cassandra.gms.IFailureDetector.isAlive:(Ljava/net/InetAddress;)Z
ifeq 11
9: aload 4
aload 7
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: goto 15
11: StackMap locals:
StackMap stack:
aload 3
aload 7
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: getstatic org.apache.cassandra.hints.HintsService.instance:Lorg/apache/cassandra/hints/HintsService;
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
aload 7
invokevirtual org.apache.cassandra.service.StorageService.getHostIdForEndpoint:(Ljava/net/InetAddress;)Ljava/util/UUID;
13: aload 0
lload 1
invokestatic org.apache.cassandra.hints.Hint.create:(Lorg/apache/cassandra/db/Mutation;J)Lorg/apache/cassandra/hints/Hint;
14: invokevirtual org.apache.cassandra.hints.HintsService.write:(Ljava/util/UUID;Lorg/apache/cassandra/hints/Hint;)V
end local 7 15: StackMap locals: org.apache.cassandra.db.Mutation long java.util.Set java.util.Set java.lang.String org.apache.cassandra.dht.Token top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
16: aload 4
invokeinterface java.util.Set.isEmpty:()Z
ifeq 18
17: aconst_null
areturn
18: StackMap locals: org.apache.cassandra.db.Mutation long java.util.Set java.util.Set java.lang.String org.apache.cassandra.dht.Token
StackMap stack:
new org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler
dup
aload 4
invokestatic java.lang.System.nanoTime:()J
invokespecial org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler.<init>:(Ljava/util/Collection;J)V
astore 7
start local 7 19: aload 0
invokevirtual org.apache.cassandra.db.Mutation.createMessage:()Lorg/apache/cassandra/net/MessageOut;
astore 8
start local 8 20: aload 4
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 10
goto 23
StackMap locals: org.apache.cassandra.db.Mutation long java.util.Set java.util.Set java.lang.String org.apache.cassandra.dht.Token org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler org.apache.cassandra.net.MessageOut top java.util.Iterator
StackMap stack:
21: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 9
start local 9 22: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 8
aload 9
aload 7
iconst_0
invokevirtual org.apache.cassandra.net.MessagingService.sendRR:(Lorg/apache/cassandra/net/MessageOut;Ljava/net/InetAddress;Lorg/apache/cassandra/service/AbstractWriteResponseHandler;Z)I
pop
end local 9 23: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
24: aload 7
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 mutation Lorg/apache/cassandra/db/Mutation;
0 25 1 writtenAt J
0 25 3 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
1 25 4 liveEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
2 25 5 ks Ljava/lang/String;
3 25 6 tk Lorg/apache/cassandra/dht/Token;
5 15 7 endpoint Ljava/net/InetAddress;
19 25 7 handler Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;
20 25 8 message Lorg/apache/cassandra/net/MessageOut<Lorg/apache/cassandra/db/Mutation;>;
22 23 9 endpoint Ljava/net/InetAddress;
Signature: (Lorg/apache/cassandra/db/Mutation;JLjava/util/Set<Ljava/net/InetAddress;>;)Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler<Lorg/apache/cassandra/db/Mutation;>;
MethodParameters:
Name Flags
mutation final
writtenAt
hintedNodes
private static int gcgs(java.util.Collection<org.apache.cassandra.db.Mutation>);
descriptor: (Ljava/util/Collection;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: ldc 2147483647
istore 1
start local 1 1: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.util.Collection int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 2
start local 2 3: iload 1
aload 2
invokevirtual org.apache.cassandra.db.Mutation.smallestGCGS:()I
invokestatic java.lang.Math.min:(II)I
istore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 mutations Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
1 6 1 gcgs I
3 4 2 mutation Lorg/apache/cassandra/db/Mutation;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;)I
MethodParameters:
Name Flags
mutations
}
SourceFile: "BatchlogManager.java"
NestHost: org.apache.cassandra.batchlog.BatchlogManager
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private ReplayingBatch = org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch of org.apache.cassandra.batchlog.BatchlogManager
private ReplayWriteResponseHandler = org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler of org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
public MutationSerializer = org.apache.cassandra.db.Mutation$MutationSerializer of org.apache.cassandra.db.Mutation