public final class org.apache.cassandra.repair.SystemDistributedKeyspace
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.repair.SystemDistributedKeyspace
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String REPAIR_HISTORY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "repair_history"
public static final java.lang.String PARENT_REPAIR_HISTORY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "parent_repair_history"
public static final java.lang.String VIEW_BUILD_STATUS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "view_build_status"
private static final org.apache.cassandra.config.CFMetaData RepairHistory;
descriptor: Lorg/apache/cassandra/config/CFMetaData;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.cassandra.config.CFMetaData ParentRepairHistory;
descriptor: Lorg/apache/cassandra/config/CFMetaData;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.cassandra.config.CFMetaData ViewBuildStatus;
descriptor: Lorg/apache/cassandra/config/CFMetaData;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/repair/SystemDistributedKeyspace;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.repair.SystemDistributedKeyspace.logger:Lorg/slf4j/Logger;
1: ldc "repair_history"
2: ldc "Repair history"
3: ldc "CREATE TABLE %s (keyspace_name text,columnfamily_name text,id timeuuid,parent_id timeuuid,range_begin text,range_end text,coordinator inet,participants set<inet>,exception_message text,exception_stacktrace text,status text,started_at timestamp,finished_at timestamp,PRIMARY KEY ((keyspace_name, columnfamily_name), id))"
4: invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.compile:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
5: putstatic org.apache.cassandra.repair.SystemDistributedKeyspace.RepairHistory:Lorg/apache/cassandra/config/CFMetaData;
6: ldc "parent_repair_history"
7: ldc "Repair history"
8: ldc "CREATE TABLE %s (parent_id timeuuid,keyspace_name text,columnfamily_names set<text>,started_at timestamp,finished_at timestamp,exception_message text,exception_stacktrace text,requested_ranges set<text>,successful_ranges set<text>,options map<text, text>,PRIMARY KEY (parent_id))"
9: invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.compile:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
10: putstatic org.apache.cassandra.repair.SystemDistributedKeyspace.ParentRepairHistory:Lorg/apache/cassandra/config/CFMetaData;
11: ldc "view_build_status"
12: ldc "Materialized View build status"
13: ldc "CREATE TABLE %s (keyspace_name text,view_name text,host_id uuid,status text,PRIMARY KEY ((keyspace_name, view_name), host_id))"
14: invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.compile:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
15: putstatic org.apache.cassandra.repair.SystemDistributedKeyspace.ViewBuildStatus:Lorg/apache/cassandra/config/CFMetaData;
16: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/repair/SystemDistributedKeyspace;
private static org.apache.cassandra.config.CFMetaData compile(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
ldc "system_distributed"
invokestatic org.apache.cassandra.config.CFMetaData.compile:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
1: aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.comment:(Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
2: getstatic java.util.concurrent.TimeUnit.DAYS:Ljava/util/concurrent/TimeUnit;
ldc 10
invokevirtual java.util.concurrent.TimeUnit.toSeconds:(J)J
l2i
invokevirtual org.apache.cassandra.config.CFMetaData.gcGraceSeconds:(I)Lorg/apache/cassandra/config/CFMetaData;
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
0 4 1 description Ljava/lang/String;
0 4 2 schema Ljava/lang/String;
MethodParameters:
Name Flags
name
description
schema
public static org.apache.cassandra.schema.KeyspaceMetadata metadata();
descriptor: ()Lorg/apache/cassandra/schema/KeyspaceMetadata;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: ldc "system_distributed"
iconst_3
invokestatic org.apache.cassandra.schema.KeyspaceParams.simple:(I)Lorg/apache/cassandra/schema/KeyspaceParams;
iconst_3
anewarray org.apache.cassandra.config.CFMetaData
dup
iconst_0
getstatic org.apache.cassandra.repair.SystemDistributedKeyspace.RepairHistory:Lorg/apache/cassandra/config/CFMetaData;
aastore
dup
iconst_1
getstatic org.apache.cassandra.repair.SystemDistributedKeyspace.ParentRepairHistory:Lorg/apache/cassandra/config/CFMetaData;
aastore
dup
iconst_2
getstatic org.apache.cassandra.repair.SystemDistributedKeyspace.ViewBuildStatus:Lorg/apache/cassandra/config/CFMetaData;
aastore
invokestatic org.apache.cassandra.schema.Tables.of:([Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/schema/Tables;
invokestatic org.apache.cassandra.schema.KeyspaceMetadata.create:(Ljava/lang/String;Lorg/apache/cassandra/schema/KeyspaceParams;Lorg/apache/cassandra/schema/Tables;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void startParentRepair(java.util.UUID, java.lang.String, java.lang.String[], org.apache.cassandra.repair.messages.RepairOption);
descriptor: (Ljava/util/UUID;Ljava/lang/String;[Ljava/lang/String;Lorg/apache/cassandra/repair/messages/RepairOption;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual org.apache.cassandra.repair.messages.RepairOption.getRanges:()Ljava/util/Collection;
astore 4
start local 4 1: ldc "INSERT INTO %s.%s (parent_id, keyspace_name, columnfamily_names, requested_ranges, started_at, options) VALUES (%s, '%s', { '%s' }, { '%s' }, toTimestamp(now()), { %s })"
astore 5
start local 5 2: aload 5
bipush 7
anewarray java.lang.Object
dup
iconst_0
3: ldc "system_distributed"
aastore
dup
iconst_1
4: ldc "parent_repair_history"
aastore
dup
iconst_2
5: aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
dup
iconst_3
6: aload 1
aastore
dup
iconst_4
7: ldc "','"
invokestatic com.google.common.base.Joiner.on:(Ljava/lang/String;)Lcom/google/common/base/Joiner;
aload 2
invokevirtual com.google.common.base.Joiner.join:([Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_5
8: ldc "','"
invokestatic com.google.common.base.Joiner.on:(Ljava/lang/String;)Lcom/google/common/base/Joiner;
aload 4
invokevirtual com.google.common.base.Joiner.join:(Ljava/lang/Iterable;)Ljava/lang/String;
aastore
dup
bipush 6
9: aload 3
invokevirtual org.apache.cassandra.repair.messages.RepairOption.asMap:()Ljava/util/Map;
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "ranges"
aastore
dup
iconst_1
ldc "columnFamilies"
aastore
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.toCQLMap:(Ljava/util/Map;[Ljava/lang/String;)Ljava/lang/String;
aastore
10: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 6
start local 6 11: aload 6
iconst_0
anewarray java.lang.String
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
12: return
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 13 0 parent_id Ljava/util/UUID;
0 13 1 keyspaceName Ljava/lang/String;
0 13 2 cfnames [Ljava/lang/String;
0 13 3 options Lorg/apache/cassandra/repair/messages/RepairOption;
1 13 4 ranges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
2 13 5 query Ljava/lang/String;
11 13 6 fmtQry Ljava/lang/String;
MethodParameters:
Name Flags
parent_id
keyspaceName
cfnames
options
private static java.lang.String toCQLMap(java.util.Map<java.lang.String, java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/Map;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.collect.Sets.newHashSet:([Ljava/lang/Object;)Ljava/util/HashSet;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 2: iconst_1
istore 4
start local 4 3: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: java.util.Map java.lang.String[] java.util.Set java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 5: aload 2
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 10
6: iload 4
ifne 8
7: aload 3
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: StackMap locals: java.util.Map java.lang.String[] java.util.Set java.lang.StringBuilder int java.util.Map$Entry java.util.Iterator
StackMap stack:
iconst_0
istore 4
9: aload 3
ldc "'%s': '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
dup
iconst_1
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 5 10: StackMap locals: java.util.Map java.lang.String[] java.util.Set java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 12 1 ignore [Ljava/lang/String;
1 12 2 toIgnore Ljava/util/Set<Ljava/lang/String;>;
2 12 3 map Ljava/lang/StringBuilder;
3 12 4 first Z
5 10 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;[Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
options
ignore
public static void failParentRepair(java.util.UUID, java.lang.Throwable);
descriptor: (Ljava/util/UUID;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: ldc "UPDATE %s.%s SET finished_at = toTimestamp(now()), exception_message=?, exception_stacktrace=? WHERE parent_id=%s"
astore 2
start local 2 1: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 3
start local 3 2: new java.io.PrintWriter
dup
aload 3
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 4
start local 4 3: aload 1
aload 4
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
4: aload 2
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "parent_repair_history"
aastore
dup
iconst_2
aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 5: aload 5
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 1
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aastore
dup
iconst_1
aload 3
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
6: 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 7 0 parent_id Ljava/util/UUID;
0 7 1 t Ljava/lang/Throwable;
1 7 2 query Ljava/lang/String;
2 7 3 sw Ljava/io/StringWriter;
3 7 4 pw Ljava/io/PrintWriter;
5 7 5 fmtQuery Ljava/lang/String;
MethodParameters:
Name Flags
parent_id
t
public static void successfulParentRepair(java.util.UUID, java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>);
descriptor: (Ljava/util/UUID;Ljava/util/Collection;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: ldc "UPDATE %s.%s SET finished_at = toTimestamp(now()), successful_ranges = {'%s'} WHERE parent_id=%s"
astore 2
start local 2 1: aload 2
iconst_4
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "parent_repair_history"
aastore
dup
iconst_2
ldc "','"
invokestatic com.google.common.base.Joiner.on:(Ljava/lang/String;)Lcom/google/common/base/Joiner;
aload 1
invokevirtual com.google.common.base.Joiner.join:(Ljava/lang/Iterable;)Ljava/lang/String;
aastore
dup
iconst_3
aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 2: aload 3
iconst_0
anewarray java.lang.String
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parent_id Ljava/util/UUID;
0 4 1 successfulRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
1 4 2 query Ljava/lang/String;
2 4 3 fmtQuery Ljava/lang/String;
Signature: (Ljava/util/UUID;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;)V
MethodParameters:
Name Flags
parent_id
successfulRanges
public static void startRepairs(java.util.UUID, java.util.UUID, java.lang.String, java.lang.String[], java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>, java.lang.Iterable<java.net.InetAddress>);
descriptor: (Ljava/util/UUID;Ljava/util/UUID;Ljava/lang/String;[Ljava/lang/String;Ljava/util/Collection;Ljava/lang/Iterable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=16, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 6
start local 6 1: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 6
aastore
invokestatic com.google.common.collect.Sets.newHashSet:([Ljava/lang/Object;)Ljava/util/HashSet;
astore 7
start local 7 2: aload 5
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 9
goto 5
StackMap locals: java.util.UUID java.util.UUID java.lang.String java.lang.String[] java.util.Collection java.lang.Iterable java.lang.String java.util.Set top java.util.Iterator
StackMap stack:
3: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 8
start local 8 4: aload 7
aload 8
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 8 5: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: ldc "INSERT INTO %s.%s (keyspace_name, columnfamily_name, id, parent_id, range_begin, range_end, coordinator, participants, status, started_at) VALUES ( '%s', '%s', %s, %s, '%s', '%s', '%s', { '%s' }, '%s', toTimestamp(now()))"
7: astore 8
start local 8 8: aload 3
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 26
StackMap locals: java.util.UUID java.util.UUID java.lang.String java.lang.String[] java.util.Collection java.lang.Iterable java.lang.String java.util.Set java.lang.String top int int java.lang.String[]
StackMap stack:
9: aload 12
iload 10
aaload
astore 9
start local 9 10: aload 4
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 14
goto 24
StackMap locals: java.util.UUID java.util.UUID java.lang.String java.lang.String[] java.util.Collection java.lang.Iterable java.lang.String java.util.Set java.lang.String java.lang.String int int java.lang.String[] top java.util.Iterator
StackMap stack:
11: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 13
start local 13 12: aload 8
bipush 11
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "repair_history"
aastore
dup
iconst_2
13: aload 2
aastore
dup
iconst_3
14: aload 9
aastore
dup
iconst_4
15: aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
dup
iconst_5
16: aload 1
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
dup
bipush 6
17: aload 13
getfield org.apache.cassandra.dht.Range.left:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aastore
dup
bipush 7
18: aload 13
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aastore
dup
bipush 8
19: aload 6
aastore
dup
bipush 9
20: ldc "', '"
invokestatic com.google.common.base.Joiner.on:(Ljava/lang/String;)Lcom/google/common/base/Joiner;
aload 7
invokevirtual com.google.common.base.Joiner.join:(Ljava/lang/Iterable;)Ljava/lang/String;
aastore
dup
bipush 10
21: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.STARTED:Lorg/apache/cassandra/repair/SystemDistributedKeyspace$RepairState;
invokevirtual org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.toString:()Ljava/lang/String;
aastore
22: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 15
start local 15 23: aload 15
iconst_0
anewarray java.lang.String
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
end local 15 end local 13 24: StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
end local 9 25: iinc 10 1
StackMap locals: java.util.UUID java.util.UUID java.lang.String java.lang.String[] java.util.Collection java.lang.Iterable java.lang.String java.util.Set java.lang.String top int int java.lang.String[]
StackMap stack:
26: iload 10
iload 11
if_icmplt 9
27: 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 28 0 id Ljava/util/UUID;
0 28 1 parent_id Ljava/util/UUID;
0 28 2 keyspaceName Ljava/lang/String;
0 28 3 cfnames [Ljava/lang/String;
0 28 4 ranges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
0 28 5 endpoints Ljava/lang/Iterable<Ljava/net/InetAddress;>;
1 28 6 coordinator Ljava/lang/String;
2 28 7 participants Ljava/util/Set<Ljava/lang/String;>;
4 5 8 endpoint Ljava/net/InetAddress;
8 28 8 query Ljava/lang/String;
10 25 9 cfname Ljava/lang/String;
12 24 13 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
23 24 15 fmtQry Ljava/lang/String;
Signature: (Ljava/util/UUID;Ljava/util/UUID;Ljava/lang/String;[Ljava/lang/String;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;Ljava/lang/Iterable<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
id
parent_id
keyspaceName
cfnames
ranges
endpoints
public static void failRepairs(java.util.UUID, java.lang.String, java.lang.String[], java.lang.Throwable);
descriptor: (Ljava/util/UUID;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 4
StackMap locals: java.util.UUID java.lang.String java.lang.String[] java.lang.Throwable top int int java.lang.String[]
StackMap stack:
1: aload 7
iload 5
aaload
astore 4
start local 4 2: aload 0
aload 1
aload 4
aload 3
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.failedRepairJob:(Ljava/util/UUID;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 3: iinc 5 1
StackMap locals:
StackMap stack:
4: iload 5
iload 6
if_icmplt 1
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 id Ljava/util/UUID;
0 6 1 keyspaceName Ljava/lang/String;
0 6 2 cfnames [Ljava/lang/String;
0 6 3 t Ljava/lang/Throwable;
2 3 4 cfname Ljava/lang/String;
MethodParameters:
Name Flags
id
keyspaceName
cfnames
t
public static void successfulRepairJob(java.util.UUID, java.lang.String, java.lang.String);
descriptor: (Ljava/util/UUID;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: ldc "UPDATE %s.%s SET status = '%s', finished_at = toTimestamp(now()) WHERE keyspace_name = '%s' AND columnfamily_name = '%s' AND id = %s"
astore 3
start local 3 1: aload 3
bipush 6
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "repair_history"
aastore
dup
iconst_2
2: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.SUCCESS:Lorg/apache/cassandra/repair/SystemDistributedKeyspace$RepairState;
invokevirtual org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.toString:()Ljava/lang/String;
aastore
dup
iconst_3
3: aload 1
aastore
dup
iconst_4
4: aload 2
aastore
dup
iconst_5
5: aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 7: aload 4
iconst_0
anewarray java.lang.String
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 id Ljava/util/UUID;
0 9 1 keyspaceName Ljava/lang/String;
0 9 2 cfname Ljava/lang/String;
1 9 3 query Ljava/lang/String;
7 9 4 fmtQuery Ljava/lang/String;
MethodParameters:
Name Flags
id
keyspaceName
cfname
public static void failedRepairJob(java.util.UUID, java.lang.String, java.lang.String, java.lang.Throwable);
descriptor: (Ljava/util/UUID;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "UPDATE %s.%s SET status = '%s', finished_at = toTimestamp(now()), exception_message=?, exception_stacktrace=? WHERE keyspace_name = '%s' AND columnfamily_name = '%s' AND id = %s"
astore 4
start local 4 1: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 5
start local 5 2: new java.io.PrintWriter
dup
aload 5
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 6
start local 6 3: aload 3
aload 6
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
4: aload 4
bipush 6
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "repair_history"
aastore
dup
iconst_2
5: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.FAILED:Lorg/apache/cassandra/repair/SystemDistributedKeyspace$RepairState;
invokevirtual org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState.toString:()Ljava/lang/String;
aastore
dup
iconst_3
6: aload 1
aastore
dup
iconst_4
7: aload 2
aastore
dup
iconst_5
8: aload 0
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
aastore
9: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 7
start local 7 10: aload 7
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 3
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aastore
dup
iconst_1
aload 5
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
aastore
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.processSilent:(Ljava/lang/String;[Ljava/lang/String;)V
11: 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 12 0 id Ljava/util/UUID;
0 12 1 keyspaceName Ljava/lang/String;
0 12 2 cfname Ljava/lang/String;
0 12 3 t Ljava/lang/Throwable;
1 12 4 query Ljava/lang/String;
2 12 5 sw Ljava/io/StringWriter;
3 12 6 pw Ljava/io/PrintWriter;
10 12 7 fmtQry Ljava/lang/String;
MethodParameters:
Name Flags
id
keyspaceName
cfname
t
public static void startViewBuild(java.lang.String, java.lang.String, java.util.UUID);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "INSERT INTO %s.%s (keyspace_name, view_name, host_id, status) VALUES (?, ?, ?, ?)"
astore 3
start local 3 1: aload 3
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "view_build_status"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2: getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
iconst_4
anewarray java.nio.ByteBuffer
dup
iconst_0
3: aload 0
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_1
4: aload 1
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_2
5: aload 2
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/util/UUID;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_3
6: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus.STARTED:Lorg/apache/cassandra/repair/SystemDistributedKeyspace$BuildStatus;
invokevirtual org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
7: invokestatic com.google.common.collect.Lists.newArrayList:([Ljava/lang/Object;)Ljava/util/ArrayList;
8: invokestatic org.apache.cassandra.cql3.QueryProcessor.process:(Ljava/lang/String;Lorg/apache/cassandra/db/ConsistencyLevel;Ljava/util/List;)Lorg/apache/cassandra/cql3/UntypedResultSet;
pop
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 keyspace Ljava/lang/String;
0 10 1 view Ljava/lang/String;
0 10 2 hostId Ljava/util/UUID;
1 10 3 query Ljava/lang/String;
MethodParameters:
Name Flags
keyspace
view
hostId
public static void successfulViewBuild(java.lang.String, java.lang.String, java.util.UUID);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "UPDATE %s.%s SET status = ? WHERE keyspace_name = ? AND view_name = ? AND host_id = ?"
astore 3
start local 3 1: aload 3
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "view_build_status"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2: getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
iconst_4
anewarray java.nio.ByteBuffer
dup
iconst_0
3: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus.SUCCESS:Lorg/apache/cassandra/repair/SystemDistributedKeyspace$BuildStatus;
invokevirtual org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_1
4: aload 0
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_2
5: aload 1
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
aastore
dup
iconst_3
6: aload 2
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/util/UUID;)Ljava/nio/ByteBuffer;
aastore
7: invokestatic com.google.common.collect.Lists.newArrayList:([Ljava/lang/Object;)Ljava/util/ArrayList;
8: invokestatic org.apache.cassandra.cql3.QueryProcessor.process:(Ljava/lang/String;Lorg/apache/cassandra/db/ConsistencyLevel;Ljava/util/List;)Lorg/apache/cassandra/cql3/UntypedResultSet;
pop
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 keyspace Ljava/lang/String;
0 10 1 view Ljava/lang/String;
0 10 2 hostId Ljava/util/UUID;
1 10 3 query Ljava/lang/String;
MethodParameters:
Name Flags
keyspace
view
hostId
public static java.util.Map<java.util.UUID, java.lang.String> viewStatus(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: ldc "SELECT host_id, status FROM %s.%s WHERE keyspace_name = ? AND view_name = ?"
astore 2
start local 2 1: aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "view_build_status"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2: getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 0
aastore
dup
iconst_1
4: aload 1
aastore
5: invokestatic org.apache.cassandra.cql3.QueryProcessor.execute:(Ljava/lang/String;Lorg/apache/cassandra/db/ConsistencyLevel;[Ljava/lang/Object;)Lorg/apache/cassandra/cql3/UntypedResultSet;
astore 3
start local 3 6: goto 9
end local 3 7: StackMap locals: java.lang.String java.lang.String java.lang.String
StackMap stack: java.lang.Exception
pop
8: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
start local 3 9: StackMap locals: org.apache.cassandra.cql3.UntypedResultSet
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 10: aload 3
invokevirtual org.apache.cassandra.cql3.UntypedResultSet.iterator:()Ljava/util/Iterator;
astore 6
goto 13
StackMap locals: java.lang.String java.lang.String java.lang.String org.apache.cassandra.cql3.UntypedResultSet java.util.Map top java.util.Iterator
StackMap stack:
11: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.UntypedResultSet$Row
astore 5
start local 5 12: aload 4
aload 5
ldc "host_id"
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getUUID:(Ljava/lang/String;)Ljava/util/UUID;
aload 5
ldc "status"
invokevirtual org.apache.cassandra.cql3.UntypedResultSet$Row.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 13: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 keyspace Ljava/lang/String;
0 15 1 view Ljava/lang/String;
1 15 2 query Ljava/lang/String;
6 7 3 results Lorg/apache/cassandra/cql3/UntypedResultSet;
9 15 3 results Lorg/apache/cassandra/cql3/UntypedResultSet;
10 15 4 status Ljava/util/Map<Ljava/util/UUID;Ljava/lang/String;>;
12 13 5 row Lorg/apache/cassandra/cql3/UntypedResultSet$Row;
Exception table:
from to target type
1 6 7 Class java.lang.Exception
Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map<Ljava/util/UUID;Ljava/lang/String;>;
MethodParameters:
Name Flags
keyspace
view
public static void setViewRemoved(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: ldc "DELETE FROM %s.%s WHERE keyspace_name = ? AND view_name = ?"
astore 2
start local 2 1: aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "system_distributed"
aastore
dup
iconst_1
ldc "view_build_status"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
aastore
invokestatic org.apache.cassandra.cql3.QueryProcessor.executeInternal:(Ljava/lang/String;[Ljava/lang/Object;)Lorg/apache/cassandra/cql3/UntypedResultSet;
pop
2: ldc "view_build_status"
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.forceBlockingFlush:(Ljava/lang/String;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 keyspaceName Ljava/lang/String;
0 4 1 viewName Ljava/lang/String;
1 4 2 buildReq Ljava/lang/String;
MethodParameters:
Name Flags
keyspaceName
viewName
private static void processSilent(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
StackMap locals: java.lang.String java.lang.String[] java.util.List top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 2
aload 3
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytes:(Ljava/lang/String;)Ljava/nio/ByteBuffer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 2
6: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
aload 2
invokestatic org.apache.cassandra.cql3.QueryProcessor.process:(Ljava/lang/String;Lorg/apache/cassandra/db/ConsistencyLevel;Ljava/util/List;)Lorg/apache/cassandra/cql3/UntypedResultSet;
pop
end local 2 7: goto 10
8: StackMap locals: java.lang.String java.lang.String[]
StackMap stack: java.lang.Throwable
astore 2
start local 2 9: getstatic org.apache.cassandra.repair.SystemDistributedKeyspace.logger:Lorg/slf4j/Logger;
new java.lang.StringBuilder
dup
ldc "Error executing query "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 fmtQry Ljava/lang/String;
0 11 1 values [Ljava/lang/String;
1 7 2 valueList Ljava/util/List<Ljava/nio/ByteBuffer;>;
3 4 3 v Ljava/lang/String;
9 10 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 7 8 Class java.lang.Throwable
MethodParameters:
Name Flags
fmtQry
values
public static void forceBlockingFlush(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.isUnsafeSystem:()Z
ifne 2
1: ldc "system_distributed"
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
aload 0
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/lang/String;)Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.forceFlush:()Lcom/google/common/util/concurrent/ListenableFuture;
invokestatic org.apache.cassandra.utils.FBUtilities.waitOnFuture:(Ljava/util/concurrent/Future;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 table Ljava/lang/String;
MethodParameters:
Name Flags
table
}
SourceFile: "SystemDistributedKeyspace.java"
NestMembers:
org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public Row = org.apache.cassandra.cql3.UntypedResultSet$Row of org.apache.cassandra.cql3.UntypedResultSet
private final BuildStatus = org.apache.cassandra.repair.SystemDistributedKeyspace$BuildStatus of org.apache.cassandra.repair.SystemDistributedKeyspace
private final RepairState = org.apache.cassandra.repair.SystemDistributedKeyspace$RepairState of org.apache.cassandra.repair.SystemDistributedKeyspace