public class org.apache.cassandra.db.view.ViewBuilder extends org.apache.cassandra.db.compaction.CompactionInfo$Holder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.view.ViewBuilder
super_class: org.apache.cassandra.db.compaction.CompactionInfo$Holder
{
private final org.apache.cassandra.db.ColumnFamilyStore baseCfs;
descriptor: Lorg/apache/cassandra/db/ColumnFamilyStore;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.db.view.View view;
descriptor: Lorg/apache/cassandra/db/view/View;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.UUID compactionId;
descriptor: Ljava/util/UUID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile org.apache.cassandra.dht.Token prevToken;
descriptor: Lorg/apache/cassandra/dht/Token;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile boolean isStopped;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/view/ViewBuilder;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.ColumnFamilyStore, org.apache.cassandra.db.view.View);
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/view/View;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.cassandra.db.compaction.CompactionInfo$Holder.<init>:()V
1: aload 0
aconst_null
putfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
2: aload 0
iconst_0
putfield org.apache.cassandra.db.view.ViewBuilder.isStopped:Z
3: aload 0
aload 1
putfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
4: aload 0
aload 2
putfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
5: aload 0
invokestatic org.apache.cassandra.utils.UUIDGen.getTimeUUID:()Ljava/util/UUID;
putfield org.apache.cassandra.db.view.ViewBuilder.compactionId:Ljava/util/UUID;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
0 7 1 baseCfs Lorg/apache/cassandra/db/ColumnFamilyStore;
0 7 2 view Lorg/apache/cassandra/db/view/View;
MethodParameters:
Name Flags
baseCfs
view
private void buildKey(org.apache.cassandra.db.DecoratedKey);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
invokevirtual org.apache.cassandra.db.view.View.getReadQuery:()Lorg/apache/cassandra/db/ReadQuery;
astore 2
start local 2 1: aload 2
aload 1
invokeinterface org.apache.cassandra.db.ReadQuery.selectsKey:(Lorg/apache/cassandra/db/DecoratedKey;)Z
ifne 4
2: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Skipping {}, view query filters"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
3: return
4: StackMap locals: org.apache.cassandra.db.ReadQuery
StackMap stack:
invokestatic org.apache.cassandra.utils.FBUtilities.nowInSeconds:()I
istore 3
start local 3 5: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
invokevirtual org.apache.cassandra.db.view.View.getSelectStatement:()Lorg/apache/cassandra/cql3/statements/SelectStatement;
aload 1
iload 3
invokevirtual org.apache.cassandra.cql3.statements.SelectStatement.internalReadForView:(Lorg/apache/cassandra/db/DecoratedKey;I)Lorg/apache/cassandra/db/SinglePartitionReadCommand;
astore 4
start local 4 6: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 1
getstatic org.apache.cassandra.db.rows.Rows.EMPTY_STATIC_ROW:Lorg/apache/cassandra/db/rows/Row;
getstatic org.apache.cassandra.db.DeletionTime.LIVE:Lorg/apache/cassandra/db/DeletionTime;
iconst_0
invokestatic org.apache.cassandra.db.rows.UnfilteredRowIterators.noRowsIterator:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/rows/Row;Lorg/apache/cassandra/db/DeletionTime;Z)Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;
astore 5
start local 5 7: aconst_null
astore 6
aconst_null
astore 7
8: aload 4
invokevirtual org.apache.cassandra.db.SinglePartitionReadCommand.executionController:()Lorg/apache/cassandra/db/ReadExecutionController;
astore 8
start local 8 9: aload 4
aload 8
invokevirtual org.apache.cassandra.db.SinglePartitionReadCommand.executeLocally:(Lorg/apache/cassandra/db/ReadExecutionController;)Lorg/apache/cassandra/db/partitions/UnfilteredPartitionIterator;
aload 4
invokestatic org.apache.cassandra.db.partitions.UnfilteredPartitionIterators.getOnlyElement:(Lorg/apache/cassandra/db/partitions/UnfilteredPartitionIterator;Lorg/apache/cassandra/db/SinglePartitionReadCommand;)Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;
astore 9
start local 9 10: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
getfield org.apache.cassandra.db.Keyspace.viewManager:Lorg/apache/cassandra/db/view/ViewManager;
11: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.db.view.ViewManager.forTable:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/view/TableViews;
12: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
aload 9
aload 5
iload 3
iconst_1
invokevirtual org.apache.cassandra.db.view.TableViews.generateViewUpdates:(Ljava/util/Collection;Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;IZ)Ljava/util/Iterator;
13: astore 10
start local 10 14: new java.util.concurrent.atomic.AtomicLong
dup
ldc 9223372036854775807
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
astore 11
start local 11 15: aload 10
aload 1
aload 11
invokedynamic accept(Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/concurrent/atomic/AtomicLong;)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/db/view/ViewBuilder.lambda$0(Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/concurrent/atomic/AtomicLong;Ljava/util/Collection;)V (6)
(Ljava/util/Collection;)V
invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
end local 11 end local 10 16: aload 9
ifnull 19
aload 9
invokeinterface org.apache.cassandra.db.rows.UnfilteredRowIterator.close:()V
goto 19
StackMap locals: org.apache.cassandra.db.view.ViewBuilder org.apache.cassandra.db.DecoratedKey org.apache.cassandra.db.ReadQuery int org.apache.cassandra.db.SinglePartitionReadCommand org.apache.cassandra.db.rows.UnfilteredRowIterator java.lang.Throwable java.lang.Throwable org.apache.cassandra.db.ReadExecutionController org.apache.cassandra.db.rows.UnfilteredRowIterator
StackMap stack: java.lang.Throwable
17: astore 6
aload 9
ifnull 18
aload 9
invokeinterface org.apache.cassandra.db.rows.UnfilteredRowIterator.close:()V
end local 9 StackMap locals:
StackMap stack:
18: aload 6
athrow
StackMap locals:
StackMap stack:
19: aload 8
ifnull 27
aload 8
invokevirtual org.apache.cassandra.db.ReadExecutionController.close:()V
goto 27
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 7
aload 6
ifnonnull 21
aload 7
astore 6
goto 22
StackMap locals:
StackMap stack:
21: aload 6
aload 7
if_acmpeq 22
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 8
ifnull 23
aload 8
invokevirtual org.apache.cassandra.db.ReadExecutionController.close:()V
end local 8 StackMap locals:
StackMap stack:
23: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
24: astore 7
aload 6
ifnonnull 25
aload 7
astore 6
goto 26
StackMap locals:
StackMap stack:
25: aload 6
aload 7
if_acmpeq 26
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
26: aload 6
athrow
27: StackMap locals:
StackMap stack:
return
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 28 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
0 28 1 key Lorg/apache/cassandra/db/DecoratedKey;
1 28 2 selectQuery Lorg/apache/cassandra/db/ReadQuery;
5 28 3 nowInSec I
6 28 4 command Lorg/apache/cassandra/db/SinglePartitionReadCommand;
7 28 5 empty Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;
9 23 8 orderGroup Lorg/apache/cassandra/db/ReadExecutionController;
10 18 9 data Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;
14 16 10 mutations Ljava/util/Iterator<Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;>;
15 16 11 noBase Ljava/util/concurrent/atomic/AtomicLong;
Exception table:
from to target type
10 16 17 any
9 19 20 any
8 24 24 any
MethodParameters:
Name Flags
key
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=18, args_size=1
start local 0 0: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Starting view builder for {}.{}"
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
1: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Running view builder for {}.{}"
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: invokestatic org.apache.cassandra.db.SystemKeyspace.getLocalHostId:()Ljava/util/UUID;
astore 1
start local 1 3: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
astore 2
start local 2 4: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
astore 3
start local 3 5: aload 2
aload 3
invokestatic org.apache.cassandra.db.SystemKeyspace.isViewBuilt:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 10
6: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "View already marked built for {}.{}"
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.view:Lorg/apache/cassandra/db/view/View;
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 2
aload 3
invokestatic org.apache.cassandra.db.SystemKeyspace.isViewStatusReplicated:(Ljava/lang/String;Ljava/lang/String;)Z
ifne 9
8: aload 0
aload 2
aload 3
aload 1
invokevirtual org.apache.cassandra.db.view.ViewBuilder.updateDistributed:(Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
9: StackMap locals: java.util.UUID java.lang.String java.lang.String
StackMap stack:
return
10: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
invokevirtual org.apache.cassandra.service.StorageService.getLocalRanges:(Ljava/lang/String;)Ljava/util/Collection;
astore 4
start local 4 11: aload 2
aload 3
invokestatic org.apache.cassandra.db.SystemKeyspace.getViewBuildStatus:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair;
astore 5
start local 5 12: aload 5
ifnonnull 17
13: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Starting new view build. flushing base table {}.{}"
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.name:Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
14: aconst_null
astore 6
start local 6 15: aload 2
aload 3
iconst_0
invokestatic org.apache.cassandra.db.SystemKeyspace.beginViewBuild:(Ljava/lang/String;Ljava/lang/String;I)V
16: goto 19
end local 6 17: StackMap locals: java.lang.Iterable org.apache.cassandra.utils.Pair
StackMap stack:
aload 5
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 6
start local 6 18: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Resuming view build from token {}. flushing base table {}.{}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.name:Ljava/lang/String;
aastore
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
19: StackMap locals: org.apache.cassandra.dht.Token
StackMap stack:
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.forceBlockingFlush:()Lorg/apache/cassandra/db/commitlog/CommitLogPosition;
pop
20: getstatic org.apache.cassandra.db.lifecycle.SSTableSet.CANONICAL:Lorg/apache/cassandra/db/lifecycle/SSTableSet;
invokestatic org.apache.cassandra.db.lifecycle.View.selectFunction:(Lorg/apache/cassandra/db/lifecycle/SSTableSet;)Lcom/google/common/base/Function;
astore 7
start local 7 21: aload 0
aload 6
putfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
22: lconst_0
lstore 8
start local 8 23: aconst_null
astore 10
aconst_null
astore 11
24: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 7
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.selectAndReference:(Lcom/google/common/base/Function;)Lorg/apache/cassandra/db/ColumnFamilyStore$RefViewFragment;
getfield org.apache.cassandra.db.ColumnFamilyStore$RefViewFragment.refs:Lorg/apache/cassandra/utils/concurrent/Refs;
astore 12
start local 12 25: new org.apache.cassandra.io.sstable.ReducingKeyIterator
dup
aload 12
invokespecial org.apache.cassandra.io.sstable.ReducingKeyIterator.<init>:(Ljava/util/Collection;)V
astore 13
start local 13 26: aload 2
aload 3
aload 1
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.startViewBuild:(Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
27: goto 41
28: StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long java.lang.Throwable java.lang.Throwable org.apache.cassandra.utils.concurrent.Refs org.apache.cassandra.io.sstable.ReducingKeyIterator
StackMap stack:
aload 13
invokevirtual org.apache.cassandra.io.sstable.ReducingKeyIterator.next:()Lorg/apache/cassandra/db/DecoratedKey;
astore 14
start local 14 29: aload 14
invokevirtual org.apache.cassandra.db.DecoratedKey.getToken:()Lorg/apache/cassandra/dht/Token;
astore 15
start local 15 30: aload 6
ifnull 31
aload 6
aload 15
invokevirtual org.apache.cassandra.dht.Token.compareTo:(Ljava/lang/Object;)I
ifge 41
31: StackMap locals: org.apache.cassandra.db.DecoratedKey org.apache.cassandra.dht.Token
StackMap stack:
aload 4
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 17
goto 39
StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long java.lang.Throwable java.lang.Throwable org.apache.cassandra.utils.concurrent.Refs org.apache.cassandra.io.sstable.ReducingKeyIterator org.apache.cassandra.db.DecoratedKey org.apache.cassandra.dht.Token top java.util.Iterator
StackMap stack:
32: aload 17
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 16
start local 16 33: aload 16
aload 15
invokevirtual org.apache.cassandra.dht.Range.contains:(Lorg/apache/cassandra/dht/RingPosition;)Z
ifeq 39
34: aload 0
aload 14
invokevirtual org.apache.cassandra.db.view.ViewBuilder.buildKey:(Lorg/apache/cassandra/db/DecoratedKey;)V
35: lload 8
lconst_1
ladd
lstore 8
36: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
ifnull 37
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
aload 15
invokevirtual org.apache.cassandra.dht.Token.compareTo:(Ljava/lang/Object;)I
ifeq 39
37: StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long java.lang.Throwable java.lang.Throwable org.apache.cassandra.utils.concurrent.Refs org.apache.cassandra.io.sstable.ReducingKeyIterator org.apache.cassandra.db.DecoratedKey org.apache.cassandra.dht.Token org.apache.cassandra.dht.Range java.util.Iterator
StackMap stack:
aload 2
aload 3
aload 14
invokevirtual org.apache.cassandra.db.DecoratedKey.getToken:()Lorg/apache/cassandra/dht/Token;
invokestatic org.apache.cassandra.db.SystemKeyspace.updateViewBuildStatus:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/dht/Token;)V
38: aload 0
aload 15
putfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
end local 16 39: StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long java.lang.Throwable java.lang.Throwable org.apache.cassandra.utils.concurrent.Refs org.apache.cassandra.io.sstable.ReducingKeyIterator org.apache.cassandra.db.DecoratedKey org.apache.cassandra.dht.Token top java.util.Iterator
StackMap stack:
aload 17
invokeinterface java.util.Iterator.hasNext:()Z
ifne 32
40: aconst_null
astore 6
end local 15 end local 14 41: StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long java.lang.Throwable java.lang.Throwable org.apache.cassandra.utils.concurrent.Refs org.apache.cassandra.io.sstable.ReducingKeyIterator
StackMap stack:
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.isStopped:Z
ifne 42
aload 13
invokevirtual org.apache.cassandra.io.sstable.ReducingKeyIterator.hasNext:()Z
ifne 28
42: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.isStopped:Z
ifne 47
43: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Marking view({}.{}) as built covered {} keys "
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
lload 8
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
44: aload 2
aload 3
invokestatic org.apache.cassandra.db.SystemKeyspace.finishViewBuildStatus:(Ljava/lang/String;Ljava/lang/String;)V
45: aload 0
aload 2
aload 3
aload 1
invokevirtual org.apache.cassandra.db.view.ViewBuilder.updateDistributed:(Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
46: goto 48
47: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Stopped build for view({}.{}) after covering {} keys"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
lload 8
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
48: StackMap locals:
StackMap stack:
aload 13
ifnull 51
aload 13
invokevirtual org.apache.cassandra.io.sstable.ReducingKeyIterator.close:()V
goto 51
StackMap locals:
StackMap stack: java.lang.Throwable
49: astore 10
aload 13
ifnull 50
aload 13
invokevirtual org.apache.cassandra.io.sstable.ReducingKeyIterator.close:()V
end local 13 StackMap locals:
StackMap stack:
50: aload 10
athrow
StackMap locals:
StackMap stack:
51: aload 12
ifnull 65
aload 12
invokevirtual org.apache.cassandra.utils.concurrent.Refs.close:()V
goto 65
StackMap locals:
StackMap stack: java.lang.Throwable
52: astore 11
aload 10
ifnonnull 53
aload 11
astore 10
goto 54
StackMap locals:
StackMap stack:
53: aload 10
aload 11
if_acmpeq 54
aload 10
aload 11
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
54: aload 12
ifnull 55
aload 12
invokevirtual org.apache.cassandra.utils.concurrent.Refs.close:()V
end local 12 StackMap locals:
StackMap stack:
55: aload 10
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
56: astore 11
aload 10
ifnonnull 57
aload 11
astore 10
goto 58
StackMap locals:
StackMap stack:
57: aload 10
aload 11
if_acmpeq 58
aload 10
aload 11
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
58: aload 10
athrow
59: StackMap locals: org.apache.cassandra.db.view.ViewBuilder java.util.UUID java.lang.String java.lang.String java.lang.Iterable org.apache.cassandra.utils.Pair org.apache.cassandra.dht.Token com.google.common.base.Function long
StackMap stack: java.lang.Exception
astore 10
start local 10 60: getstatic org.apache.cassandra.concurrent.ScheduledExecutors.nonPeriodicTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
invokedynamic call(Lorg/apache/cassandra/db/view/ViewBuilder;)Ljava/util/concurrent/Callable;
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;
org/apache/cassandra/db/view/ViewBuilder.lambda$1()Ljava/util/concurrent/Future; (7)
()Ljava/util/concurrent/Future;
61: ldc 5
62: getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
63: invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.schedule:(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
64: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Materialized View failed to complete, sleeping 5 minutes before restarting"
aload 10
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 10 65: StackMap locals:
StackMap stack:
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 66 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
3 66 1 localHostId Ljava/util/UUID;
4 66 2 ksname Ljava/lang/String;
5 66 3 viewName Ljava/lang/String;
11 66 4 ranges Ljava/lang/Iterable<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
12 66 5 buildStatus Lorg/apache/cassandra/utils/Pair<Ljava/lang/Integer;Lorg/apache/cassandra/dht/Token;>;
15 17 6 lastToken Lorg/apache/cassandra/dht/Token;
18 66 6 lastToken Lorg/apache/cassandra/dht/Token;
21 66 7 function Lcom/google/common/base/Function<Lorg/apache/cassandra/db/lifecycle/View;Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;>;
23 66 8 keysBuilt J
25 55 12 sstables Lorg/apache/cassandra/utils/concurrent/Refs<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
26 50 13 iter Lorg/apache/cassandra/io/sstable/ReducingKeyIterator;
29 41 14 key Lorg/apache/cassandra/db/DecoratedKey;
30 41 15 token Lorg/apache/cassandra/dht/Token;
33 39 16 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
60 65 10 e Ljava/lang/Exception;
Exception table:
from to target type
26 48 49 any
25 51 52 any
24 56 56 any
23 59 59 Class java.lang.Exception
private void updateDistributed(java.lang.String, java.lang.String, java.util.UUID);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
aload 3
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.successfulViewBuild:(Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
1: aload 1
aload 2
invokestatic org.apache.cassandra.db.SystemKeyspace.setViewBuiltReplicated:(Ljava/lang/String;Ljava/lang/String;)V
2: goto 9
3: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 4: getstatic org.apache.cassandra.concurrent.ScheduledExecutors.nonPeriodicTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
invokedynamic call(Lorg/apache/cassandra/db/view/ViewBuilder;)Ljava/util/concurrent/Callable;
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;
org/apache/cassandra/db/view/ViewBuilder.lambda$2()Ljava/util/concurrent/Future; (7)
()Ljava/util/concurrent/Future;
5: ldc 5
6: getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
7: invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.schedule:(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
8: getstatic org.apache.cassandra.db.view.ViewBuilder.logger:Lorg/slf4j/Logger;
ldc "Failed to updated the distributed status of view, sleeping 5 minutes before retrying"
aload 4
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
0 10 1 ksname Ljava/lang/String;
0 10 2 viewName Ljava/lang/String;
0 10 3 localHostId Ljava/util/UUID;
4 9 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
ksname
viewName
localHostId
public org.apache.cassandra.db.compaction.CompactionInfo getCompactionInfo();
descriptor: ()Lorg/apache/cassandra/db/compaction/CompactionInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=8, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: lconst_0
lstore 3
start local 3 2: aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.prevToken:Lorg/apache/cassandra/dht/Token;
astore 5
start local 5 3: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.service.StorageService.getLocalRanges:(Ljava/lang/String;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 8
StackMap locals: org.apache.cassandra.db.view.ViewBuilder long long org.apache.cassandra.dht.Token top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 6
start local 6 5: lload 3
lconst_1
ladd
lstore 3
6: aload 5
ifnull 8
aload 5
aload 6
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
invokevirtual org.apache.cassandra.dht.Token.compareTo:(Ljava/lang/Object;)I
ifle 8
7: lload 1
lconst_1
ladd
lstore 1
end local 6 8: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: new org.apache.cassandra.db.compaction.CompactionInfo
dup
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
getstatic org.apache.cassandra.db.compaction.OperationType.VIEW_BUILD:Lorg/apache/cassandra/db/compaction/OperationType;
lload 1
lload 3
getstatic org.apache.cassandra.db.compaction.CompactionInfo$Unit.RANGES:Lorg/apache/cassandra/db/compaction/CompactionInfo$Unit;
aload 0
getfield org.apache.cassandra.db.view.ViewBuilder.compactionId:Ljava/util/UUID;
invokespecial org.apache.cassandra.db.compaction.CompactionInfo.<init>:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/db/compaction/OperationType;JJLorg/apache/cassandra/db/compaction/CompactionInfo$Unit;Ljava/util/UUID;)V
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
1 10 1 rangesCompleted J
2 10 3 rangesTotal J
3 10 5 lastToken Lorg/apache/cassandra/dht/Token;
5 8 6 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.cassandra.db.view.ViewBuilder.isStopped:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
private static void lambda$0(org.apache.cassandra.db.DecoratedKey, java.util.concurrent.atomic.AtomicLong, java.util.Collection);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/concurrent/atomic/AtomicLong;Ljava/util/Collection;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=3
start local 2 0: aload 0
invokevirtual org.apache.cassandra.db.DecoratedKey.getKey:()Ljava/nio/ByteBuffer;
aload 2
iconst_1
aload 1
invokestatic java.lang.System.nanoTime:()J
invokestatic org.apache.cassandra.service.StorageProxy.mutateMV:(Ljava/nio/ByteBuffer;Ljava/util/Collection;ZLjava/util/concurrent/atomic/AtomicLong;J)V
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 m Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
private java.util.concurrent.Future lambda$1();
descriptor: ()Ljava/util/concurrent/Future;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.db.compaction.CompactionManager.instance:Lorg/apache/cassandra/db/compaction/CompactionManager;
aload 0
invokevirtual org.apache.cassandra.db.compaction.CompactionManager.submitViewBuilder:(Lorg/apache/cassandra/db/view/ViewBuilder;)Ljava/util/concurrent/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
Exceptions:
throws java.lang.Exception
private java.util.concurrent.Future lambda$2();
descriptor: ()Ljava/util/concurrent/Future;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.db.compaction.CompactionManager.instance:Lorg/apache/cassandra/db/compaction/CompactionManager;
aload 0
invokevirtual org.apache.cassandra.db.compaction.CompactionManager.submitViewBuilder:(Lorg/apache/cassandra/db/view/ViewBuilder;)Ljava/util/concurrent/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/ViewBuilder;
Exceptions:
throws java.lang.Exception
}
SourceFile: "ViewBuilder.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public RefViewFragment = org.apache.cassandra.db.ColumnFamilyStore$RefViewFragment of org.apache.cassandra.db.ColumnFamilyStore
public abstract Holder = org.apache.cassandra.db.compaction.CompactionInfo$Holder of org.apache.cassandra.db.compaction.CompactionInfo
public final Unit = org.apache.cassandra.db.compaction.CompactionInfo$Unit of org.apache.cassandra.db.compaction.CompactionInfo