public class org.apache.cassandra.batchlog.BatchlogManager implements org.apache.cassandra.batchlog.BatchlogManagerMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.batchlog.BatchlogManager
super_class: java.lang.Object
{
public static final java.lang.String MBEAN_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "org.apache.cassandra.db:type=BatchlogManager"
private static final long REPLAY_INTERVAL;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10000
static final int DEFAULT_PAGE_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 128
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.batchlog.BatchlogManager instance;
descriptor: Lorg/apache/cassandra/batchlog/BatchlogManager;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final long BATCHLOG_REPLAY_TIMEOUT;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private volatile long totalBatchesReplayed;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.util.UUID lastReplayedUuid;
descriptor: Ljava/util/UUID;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.ScheduledExecutorService batchlogTasks;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/batchlog/BatchlogManager;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
1: new org.apache.cassandra.batchlog.BatchlogManager
dup
invokespecial org.apache.cassandra.batchlog.BatchlogManager.<init>:()V
putstatic org.apache.cassandra.batchlog.BatchlogManager.instance:Lorg/apache/cassandra/batchlog/BatchlogManager;
2: ldc "cassandra.batchlog.replay_timeout_in_ms"
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getWriteRpcTimeout:()J
ldc 2
lmul
invokestatic java.lang.Long.getLong:(Ljava/lang/String;J)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
putstatic org.apache.cassandra.batchlog.BatchlogManager.BATCHLOG_REPLAY_TIMEOUT:J
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_0
putfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
2: aload 0
lconst_0
invokestatic org.apache.cassandra.utils.UUIDGen.minTimeUUID:(J)Ljava/util/UUID;
putfield org.apache.cassandra.batchlog.BatchlogManager.lastReplayedUuid:Ljava/util/UUID;
3: new org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor
dup
ldc "BatchlogTasks"
invokespecial org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.<init>:(Ljava/lang/String;)V
astore 1
start local 1 4: aload 1
iconst_0
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy:(Z)V
5: aload 0
aload 1
putfield org.apache.cassandra.batchlog.BatchlogManager.batchlogTasks:Ljava/util/concurrent/ScheduledExecutorService;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
4 7 1 executor Ljava/util/concurrent/ScheduledThreadPoolExecutor;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.MBeanWrapper.instance:Lorg/apache/cassandra/utils/MBeanWrapper;
aload 0
ldc "org.apache.cassandra.db:type=BatchlogManager"
invokeinterface org.apache.cassandra.utils.MBeanWrapper.registerMBean:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.batchlogTasks:Ljava/util/concurrent/ScheduledExecutorService;
aload 0
invokedynamic run(Lorg/apache/cassandra/batchlog/BatchlogManager;)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/batchlog/BatchlogManager.replayFailedBatches()V (7)
()V
2: getstatic org.apache.cassandra.service.StorageService.RING_DELAY:I
i2l
3: ldc 10000
4: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
5: invokeinterface java.util.concurrent.ScheduledExecutorService.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
public void shutdownAndWait(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 3 0: lload 1
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.batchlogTasks:Ljava/util/concurrent/ScheduledExecutorService;
aastore
invokestatic org.apache.cassandra.utils.ExecutorUtils.shutdownAndWait:(JLjava/util/concurrent/TimeUnit;[Ljava/lang/Object;)V
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
0 2 1 timeout J
0 2 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
MethodParameters:
Name Flags
timeout
unit
public static void remove(java.util.UUID);
descriptor: (Ljava/util/UUID;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.db.Mutation
dup
getstatic org.apache.cassandra.db.SystemKeyspace.Batches:Lorg/apache/cassandra/config/CFMetaData;
1: getstatic org.apache.cassandra.db.marshal.UUIDType.instance:Lorg/apache/cassandra/db/marshal/UUIDType;
aload 0
invokevirtual org.apache.cassandra.db.marshal.UUIDType.decompose:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
2: invokestatic org.apache.cassandra.utils.FBUtilities.timestampMicros:()J
3: invokestatic org.apache.cassandra.utils.FBUtilities.nowInSeconds:()I
4: invokestatic org.apache.cassandra.db.partitions.PartitionUpdate.fullPartitionDelete:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;JI)Lorg/apache/cassandra/db/partitions/PartitionUpdate;
invokespecial org.apache.cassandra.db.Mutation.<init>:(Lorg/apache/cassandra/db/partitions/PartitionUpdate;)V
5: invokevirtual org.apache.cassandra.db.Mutation.apply:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 id Ljava/util/UUID;
MethodParameters:
Name Flags
id
public static void store(org.apache.cassandra.batchlog.Batch);
descriptor: (Lorg/apache/cassandra/batchlog/Batch;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic org.apache.cassandra.batchlog.BatchlogManager.store:(Lorg/apache/cassandra/batchlog/Batch;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 batch Lorg/apache/cassandra/batchlog/Batch;
MethodParameters:
Name Flags
batch
public static void store(org.apache.cassandra.batchlog.Batch, boolean);
descriptor: (Lorg/apache/cassandra/batchlog/Batch;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.batchlog.Batch.encodedMutations:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
aload 0
getfield org.apache.cassandra.batchlog.Batch.decodedMutations:Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 2
aload 0
getfield org.apache.cassandra.batchlog.Batch.encodedMutations:Ljava/util/Collection;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: aload 0
getfield org.apache.cassandra.batchlog.Batch.decodedMutations:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 16
StackMap locals: org.apache.cassandra.batchlog.Batch int java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 3
start local 3 4: aconst_null
astore 5
aconst_null
astore 6
5: new org.apache.cassandra.io.util.DataOutputBuffer
dup
invokespecial org.apache.cassandra.io.util.DataOutputBuffer.<init>:()V
astore 7
start local 7 6: getstatic org.apache.cassandra.db.Mutation.serializer:Lorg/apache/cassandra/db/Mutation$MutationSerializer;
aload 3
aload 7
getstatic org.apache.cassandra.net.MessagingService.current_version:I
invokevirtual org.apache.cassandra.db.Mutation$MutationSerializer.serialize:(Lorg/apache/cassandra/db/Mutation;Lorg/apache/cassandra/io/util/DataOutputPlus;I)V
7: aload 2
aload 7
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.buffer:()Ljava/nio/ByteBuffer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 7
ifnull 16
aload 7
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.close:()V
goto 16
StackMap locals: org.apache.cassandra.batchlog.Batch int java.util.List org.apache.cassandra.db.Mutation java.util.Iterator java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBuffer
StackMap stack: java.lang.Throwable
9: astore 5
aload 7
ifnull 10
aload 7
invokevirtual org.apache.cassandra.io.util.DataOutputBuffer.close:()V
end local 7 StackMap locals:
StackMap stack:
10: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 6
aload 5
ifnonnull 12
aload 6
astore 5
goto 13
StackMap locals:
StackMap stack:
12: aload 5
aload 6
if_acmpeq 13
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 5
athrow
14: StackMap locals: org.apache.cassandra.batchlog.Batch int java.util.List org.apache.cassandra.db.Mutation java.util.Iterator
StackMap stack: java.io.IOException
astore 5
start local 5 15: new java.lang.AssertionError
dup
aload 5
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 end local 3 16: StackMap locals: org.apache.cassandra.batchlog.Batch int java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
17: getstatic org.apache.cassandra.db.SystemKeyspace.Batches:Lorg/apache/cassandra/config/CFMetaData;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.batchlog.Batch.id:Ljava/util/UUID;
aastore
invokestatic org.apache.cassandra.db.partitions.PartitionUpdate.simpleBuilder:(Lorg/apache/cassandra/config/CFMetaData;[Ljava/lang/Object;)Lorg/apache/cassandra/db/partitions/PartitionUpdate$SimpleBuilder;
astore 3
start local 3 18: aload 3
iconst_0
anewarray java.lang.Object
invokeinterface org.apache.cassandra.db.partitions.PartitionUpdate$SimpleBuilder.row:([Ljava/lang/Object;)Lorg/apache/cassandra/db/rows/Row$SimpleBuilder;
19: aload 0
getfield org.apache.cassandra.batchlog.Batch.creationTime:J
invokeinterface org.apache.cassandra.db.rows.Row$SimpleBuilder.timestamp:(J)Lorg/apache/cassandra/db/rows/Row$SimpleBuilder;
20: ldc "version"
getstatic org.apache.cassandra.net.MessagingService.current_version:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.apache.cassandra.db.rows.Row$SimpleBuilder.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/cassandra/db/rows/Row$SimpleBuilder;
21: ldc "mutations"
aload 2
invokeinterface org.apache.cassandra.db.rows.Row$SimpleBuilder.appendAll:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/cassandra/db/rows/Row$SimpleBuilder;
pop
22: aload 3
invokeinterface org.apache.cassandra.db.partitions.PartitionUpdate$SimpleBuilder.buildAsMutation:()Lorg/apache/cassandra/db/Mutation;
iload 1
invokevirtual org.apache.cassandra.db.Mutation.apply:(Z)V
23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 batch Lorg/apache/cassandra/batchlog/Batch;
0 24 1 durableWrites Z
1 24 2 mutations Ljava/util/List<Ljava/nio/ByteBuffer;>;
4 16 3 mutation Lorg/apache/cassandra/db/Mutation;
6 10 7 buffer Lorg/apache/cassandra/io/util/DataOutputBuffer;
15 16 5 e Ljava/io/IOException;
18 24 3 builder Lorg/apache/cassandra/db/partitions/PartitionUpdate$SimpleBuilder;
Exception table:
from to target type
6 8 9 any
5 11 11 any
4 14 14 Class java.io.IOException
MethodParameters:
Name Flags
batch
durableWrites
public int countAllBatches();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: ldc "SELECT count(*) FROM %s.%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "system"
aastore
dup
iconst_1
ldc "batches"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
iconst_0
anewarray java.lang.Object
invokestatic org.apache.cassandra.cql3.QueryProcessor.executeInternal:(Ljava/lang/String;[Ljava/lang/Object;)Lorg/apache/cassandra/cql3/UntypedResultSet;
astore 2
start local 2 2: aload 2
ifnull 3
aload 2
invokevirtual org.apache.cassandra.cql3.UntypedResultSet.isEmpty:()Z
ifeq 4
3: StackMap locals: java.lang.String org.apache.cassandra.cql3.UntypedResultSet
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.cql3.UntypedResultSet.one:()Lorg/apache/cassandra/cql3/UntypedResultSet$Row;
ldc "count"
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getLong:(Ljava/lang/String;)J
l2i
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
1 5 1 query Ljava/lang/String;
2 5 2 results Lorg/apache/cassandra/cql3/UntypedResultSet;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
public long getTotalBatchesReplayed();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
public void forceBatchlogReplay();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.batchlog.BatchlogManager.startBatchlogReplay:()Ljava/util/concurrent/Future;
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
Exceptions:
throws java.lang.Exception
public java.util.concurrent.Future<?> startBatchlogReplay();
descriptor: ()Ljava/util/concurrent/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.batchlogTasks:Ljava/util/concurrent/ScheduledExecutorService;
aload 0
invokedynamic run(Lorg/apache/cassandra/batchlog/BatchlogManager;)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/batchlog/BatchlogManager.replayFailedBatches()V (7)
()V
invokeinterface java.util.concurrent.ScheduledExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
Signature: ()Ljava/util/concurrent/Future<*>;
void performInitialReplay();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.batchlogTasks:Ljava/util/concurrent/ScheduledExecutorService;
aload 0
invokedynamic run(Lorg/apache/cassandra/batchlog/BatchlogManager;)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/batchlog/BatchlogManager.replayFailedBatches()V (7)
()V
invokeinterface java.util.concurrent.ScheduledExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
private void replayFailedBatches();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=1
start local 0 0: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Started replayFailedBatches"
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;)V
1: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.getTokenMetadata:()Lorg/apache/cassandra/locator/TokenMetadata;
invokevirtual org.apache.cassandra.locator.TokenMetadata.getAllEndpoints:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
istore 1
start local 1 2: iload 1
ifgt 5
3: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Replay cancelled as there are no peers in the ring."
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;)V
4: return
5: StackMap locals: int
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getBatchlogReplayThrottleInKB:()I
iload 1
idiv
istore 2
start local 2 6: iload 2
ifne 7
ldc 1.7976931348623157E308
goto 8
StackMap locals: int
StackMap stack:
7: iload 2
sipush 1024
imul
i2d
StackMap locals:
StackMap stack: double
8: invokestatic com.google.common.util.concurrent.RateLimiter.create:(D)Lcom/google/common/util/concurrent/RateLimiter;
astore 3
start local 3 9: invokestatic java.lang.System.currentTimeMillis:()J
invokestatic org.apache.cassandra.batchlog.BatchlogManager.getBatchlogTimeout:()J
lsub
invokestatic org.apache.cassandra.utils.UUIDGen.maxTimeUUID:(J)Ljava/util/UUID;
astore 4
start local 4 10: ldc "system"
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
ldc "batches"
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/lang/String;)Lorg/apache/cassandra/db/ColumnFamilyStore;
astore 5
start local 5 11: aload 5
invokestatic org.apache.cassandra.batchlog.BatchlogManager.calculatePageSize:(Lorg/apache/cassandra/db/ColumnFamilyStore;)I
istore 6
start local 6 12: ldc "SELECT id, mutations, version FROM %s.%s WHERE token(id) > token(?) AND token(id) <= token(?)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
13: ldc "system"
aastore
dup
iconst_1
14: ldc "batches"
aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 7
start local 7 16: aload 7
iload 6
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.batchlog.BatchlogManager.lastReplayedUuid:Ljava/util/UUID;
aastore
dup
iconst_1
aload 4
aastore
invokestatic org.apache.cassandra.cql3.QueryProcessor.executeInternalWithPaging:(Ljava/lang/String;I[Ljava/lang/Object;)Lorg/apache/cassandra/cql3/UntypedResultSet;
astore 8
start local 8 17: aload 0
aload 8
iload 6
aload 3
invokevirtual org.apache.cassandra.batchlog.BatchlogManager.processBatchlogEntries:(Lorg/apache/cassandra/cql3/UntypedResultSet;ILcom/google/common/util/concurrent/RateLimiter;)V
18: aload 0
aload 4
putfield org.apache.cassandra.batchlog.BatchlogManager.lastReplayedUuid:Ljava/util/UUID;
19: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Finished replayFailedBatches"
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;)V
20: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
2 21 1 endpointsCount I
6 21 2 throttleInKB I
9 21 3 rateLimiter Lcom/google/common/util/concurrent/RateLimiter;
10 21 4 limitUuid Ljava/util/UUID;
11 21 5 store Lorg/apache/cassandra/db/ColumnFamilyStore;
12 21 6 pageSize I
16 21 7 query Ljava/lang/String;
17 21 8 batches Lorg/apache/cassandra/cql3/UntypedResultSet;
static int calculatePageSize(org.apache.cassandra.db.ColumnFamilyStore);
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;)I
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getMeanPartitionSize:()D
dstore 1
start local 1 1: dload 1
dconst_0
dcmpg
ifgt 3
2: sipush 128
ireturn
3: StackMap locals: double
StackMap stack:
dconst_1
ldc 128.0
ldc 4194304.0
dload 1
ddiv
invokestatic java.lang.Math.min:(DD)D
invokestatic java.lang.Math.max:(DD)D
d2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 store Lorg/apache/cassandra/db/ColumnFamilyStore;
1 4 1 averageRowSize D
MethodParameters:
Name Flags
store
private void processBatchlogEntries(org.apache.cassandra.cql3.UntypedResultSet, int, com.google.common.util.concurrent.RateLimiter);
descriptor: (Lorg/apache/cassandra/cql3/UntypedResultSet;ILcom/google/common/util/concurrent/RateLimiter;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: new java.util.ArrayList
dup
iload 2
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 2: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 6
start local 6 3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 7
start local 7 4: aload 1
invokevirtual org.apache.cassandra.cql3.UntypedResultSet.iterator:()Ljava/util/Iterator;
astore 9
goto 21
StackMap locals: org.apache.cassandra.batchlog.BatchlogManager org.apache.cassandra.cql3.UntypedResultSet int com.google.common.util.concurrent.RateLimiter int java.util.ArrayList java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
5: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.UntypedResultSet$Row
astore 8
start local 8 6: aload 8
ldc "id"
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getUUID:(Ljava/lang/String;)Ljava/util/UUID;
astore 10
start local 10 7: aload 8
ldc "version"
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getInt:(Ljava/lang/String;)I
istore 11
start local 11 8: new org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
dup
aload 10
iload 11
aload 8
ldc "mutations"
getstatic org.apache.cassandra.db.marshal.BytesType.instance:Lorg/apache/cassandra/db/marshal/BytesType;
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getList:(Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;)Ljava/util/List;
invokespecial org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.<init>:(Ljava/util/UUID;ILjava/util/List;)V
astore 12
start local 12 9: aload 12
aload 3
aload 6
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.replay:(Lcom/google/common/util/concurrent/RateLimiter;Ljava/util/Set;)I
ifle 12
10: aload 5
aload 12
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
11: goto 18
12: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager org.apache.cassandra.cql3.UntypedResultSet int com.google.common.util.concurrent.RateLimiter int java.util.ArrayList java.util.Set java.util.Set org.apache.cassandra.cql3.UntypedResultSet$Row java.util.Iterator java.util.UUID int org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
StackMap stack:
aload 10
invokestatic org.apache.cassandra.batchlog.BatchlogManager.remove:(Ljava/util/UUID;)V
13: aload 0
dup
getfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
lconst_1
ladd
putfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
end local 12 14: goto 18
15: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager org.apache.cassandra.cql3.UntypedResultSet int com.google.common.util.concurrent.RateLimiter int java.util.ArrayList java.util.Set java.util.Set org.apache.cassandra.cql3.UntypedResultSet$Row java.util.Iterator java.util.UUID int
StackMap stack: java.io.IOException
astore 12
start local 12 16: getstatic org.apache.cassandra.batchlog.BatchlogManager.logger:Lorg/slf4j/Logger;
ldc "Skipped batch replay of {} due to {}"
aload 10
aload 12
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
17: aload 10
invokestatic org.apache.cassandra.batchlog.BatchlogManager.remove:(Ljava/util/UUID;)V
end local 12 18: StackMap locals:
StackMap stack:
iinc 4 1
iload 4
iload 2
if_icmpne 21
19: aload 0
aload 5
aload 6
aload 7
invokevirtual org.apache.cassandra.batchlog.BatchlogManager.finishAndClearBatches:(Ljava/util/ArrayList;Ljava/util/Set;Ljava/util/Set;)V
20: iconst_0
istore 4
end local 11 end local 10 end local 8 21: StackMap locals: org.apache.cassandra.batchlog.BatchlogManager org.apache.cassandra.cql3.UntypedResultSet int com.google.common.util.concurrent.RateLimiter int java.util.ArrayList java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
22: aload 0
aload 5
aload 6
aload 7
invokevirtual org.apache.cassandra.batchlog.BatchlogManager.finishAndClearBatches:(Ljava/util/ArrayList;Ljava/util/Set;Ljava/util/Set;)V
23: getstatic org.apache.cassandra.hints.HintsService.instance:Lorg/apache/cassandra/hints/HintsService;
aload 6
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;
invokevirtual org.apache.cassandra.hints.HintsService.flushAndFsyncBlockingly:(Ljava/lang/Iterable;)V
24: aload 7
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
org/apache/cassandra/batchlog/BatchlogManager.remove(Ljava/util/UUID;)V (6)
(Ljava/util/UUID;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
25: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
0 26 1 batches Lorg/apache/cassandra/cql3/UntypedResultSet;
0 26 2 pageSize I
0 26 3 rateLimiter Lcom/google/common/util/concurrent/RateLimiter;
1 26 4 positionInPage I
2 26 5 unfinishedBatches Ljava/util/ArrayList<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;>;
3 26 6 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
4 26 7 replayedBatches Ljava/util/Set<Ljava/util/UUID;>;
6 21 8 row Lorg/apache/cassandra/cql3/UntypedResultSet$Row;
7 21 10 id Ljava/util/UUID;
8 21 11 version I
9 14 12 batch Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
16 18 12 e Ljava/io/IOException;
Exception table:
from to target type
8 14 15 Class java.io.IOException
MethodParameters:
Name Flags
batches
pageSize
rateLimiter
private void finishAndClearBatches(java.util.ArrayList<org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch>, java.util.Set<java.net.InetAddress>, java.util.Set<java.util.UUID>);
descriptor: (Ljava/util/ArrayList;Ljava/util/Set;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: org.apache.cassandra.batchlog.BatchlogManager java.util.ArrayList java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch
astore 4
start local 4 2: aload 4
aload 2
invokevirtual org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.finish:(Ljava/util/Set;)V
3: aload 3
aload 4
getfield org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch.id:Ljava/util/UUID;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aload 0
dup
getfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
aload 1
invokevirtual java.util.ArrayList.size:()I
i2l
ladd
putfield org.apache.cassandra.batchlog.BatchlogManager.totalBatchesReplayed:J
6: aload 1
invokevirtual java.util.ArrayList.clear:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/batchlog/BatchlogManager;
0 8 1 batches Ljava/util/ArrayList<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;>;
0 8 2 hintedNodes Ljava/util/Set<Ljava/net/InetAddress;>;
0 8 3 replayedBatches Ljava/util/Set<Ljava/util/UUID;>;
2 4 4 batch Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;
Signature: (Ljava/util/ArrayList<Lorg/apache/cassandra/batchlog/BatchlogManager$ReplayingBatch;>;Ljava/util/Set<Ljava/net/InetAddress;>;Ljava/util/Set<Ljava/util/UUID;>;)V
MethodParameters:
Name Flags
batches
hintedNodes
replayedBatches
public static long getBatchlogTimeout();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.apache.cassandra.batchlog.BatchlogManager.BATCHLOG_REPLAY_TIMEOUT:J
lreturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BatchlogManager.java"
NestMembers:
org.apache.cassandra.batchlog.BatchlogManager$EndpointFilter org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch$ReplayWriteResponseHandler
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public EndpointFilter = org.apache.cassandra.batchlog.BatchlogManager$EndpointFilter of org.apache.cassandra.batchlog.BatchlogManager
private ReplayingBatch = org.apache.cassandra.batchlog.BatchlogManager$ReplayingBatch of org.apache.cassandra.batchlog.BatchlogManager
public Row = org.apache.cassandra.cql3.UntypedResultSet$Row of org.apache.cassandra.cql3.UntypedResultSet
public MutationSerializer = org.apache.cassandra.db.Mutation$MutationSerializer of org.apache.cassandra.db.Mutation
public abstract SimpleBuilder = org.apache.cassandra.db.partitions.PartitionUpdate$SimpleBuilder of org.apache.cassandra.db.partitions.PartitionUpdate
public abstract SimpleBuilder = org.apache.cassandra.db.rows.Row$SimpleBuilder of org.apache.cassandra.db.rows.Row