class org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable
super_class: java.lang.Object
{
private final org.apache.cassandra.utils.Clock clock;
descriptor: Lorg/apache/cassandra/utils/Clock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long firstLagAt;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long totalSyncDuration;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long syncExceededIntervalBy;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int lagCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int syncCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
final org.apache.cassandra.db.commitlog.AbstractCommitLogService this$0;
descriptor: Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.db.commitlog.AbstractCommitLogService, org.apache.cassandra.utils.Clock);
descriptor: (Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;Lorg/apache/cassandra/utils/Clock;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 0
lconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
3: aload 0
lconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
4: aload 0
lconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncExceededIntervalBy:J
5: aload 0
iconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
6: aload 0
iconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
7: aload 0
aload 2
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.clock:Lorg/apache/cassandra/utils/Clock;
8: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService$SyncRunnable;
0 9 2 clock Lorg/apache/cassandra/utils/Clock;
MethodParameters:
Name Flags
this$0 final
clock
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.sync:()Z
ifne 0
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService$SyncRunnable;
boolean sync();
descriptor: ()Z
flags: (0x0000)
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.shutdown:Z
istore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.clock:Lorg/apache/cassandra/utils/Clock;
invokevirtual org.apache.cassandra.utils.Clock.nanoTime:()J
lstore 2
start local 2 2: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.lastSyncedAt:J
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.syncIntervalNanos:J
ladd
lload 2
lcmp
ifle 3
iload 1
ifne 3
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.syncRequested:Z
ifne 3
iconst_0
goto 4
StackMap locals: int long
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: iload 4
ifeq 12
6: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
iconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.syncRequested:Z
7: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.commitLog:Lorg/apache/cassandra/db/commitlog/CommitLog;
iconst_1
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.sync:(Z)V
8: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
lload 2
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.lastSyncedAt:J
9: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.syncComplete:Lorg/apache/cassandra/utils/concurrent/WaitQueue;
invokevirtual org.apache.cassandra.utils.concurrent.WaitQueue.signalAll:()V
10: aload 0
dup
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
iconst_1
iadd
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
11: goto 13
12: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.commitLog:Lorg/apache/cassandra/db/commitlog/CommitLog;
iconst_0
invokevirtual org.apache.cassandra.db.commitlog.CommitLog.sync:(Z)V
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.clock:Lorg/apache/cassandra/utils/Clock;
invokevirtual org.apache.cassandra.utils.Clock.nanoTime:()J
lstore 5
start local 5 14: iload 4
ifeq 16
15: aload 0
lload 2
lload 5
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.maybeLogFlushLag:(JJ)Z
pop
16: StackMap locals: long
StackMap stack:
iload 1
ifeq 18
17: iconst_0
ireturn
18: StackMap locals:
StackMap stack:
lload 2
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.markerIntervalNanos:J
ladd
lstore 7
start local 7 19: lload 7
lload 5
lcmp
ifle 26
20: lload 7
lload 5
lsub
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
end local 7 end local 5 end local 4 end local 2 21: goto 26
22: StackMap locals: org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable int
StackMap stack: java.lang.Throwable
astore 2
start local 2 23: ldc "Failed to persist commits to disk"
aload 2
invokestatic org.apache.cassandra.db.commitlog.CommitLog.handleCommitError:(Ljava/lang/String;Ljava/lang/Throwable;)Z
ifne 25
24: iconst_0
ireturn
25: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.markerIntervalNanos:J
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
end local 2 26: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService$SyncRunnable;
1 27 1 shutdownRequested Z
2 21 2 pollStarted J
5 21 4 flushToDisk Z
14 21 5 now J
19 21 7 wakeUpAt J
23 26 2 t Ljava/lang/Throwable;
Exception table:
from to target type
1 17 22 Class java.lang.Throwable
18 21 22 Class java.lang.Throwable
boolean maybeLogFlushLag(long, long);
descriptor: (JJ)Z
flags: (0x0000)
Code:
stack=17, locals=10, args_size=3
start local 0 start local 1 start local 3 0: lload 3
lload 1
lsub
lstore 5
start local 5 1: aload 0
dup
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
lload 5
ladd
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
2: lload 1
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.this$0:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService;
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService.syncIntervalNanos:J
ladd
lstore 7
start local 7 3: lload 7
lload 3
lcmp
ifle 5
4: iconst_0
ireturn
5: StackMap locals: long long
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
lconst_0
lcmp
ifne 10
6: aload 0
lload 3
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
7: aload 0
aload 0
iconst_0
dup_x1
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
i2l
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncExceededIntervalBy:J
8: aload 0
iconst_1
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
9: aload 0
lload 5
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
10: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncExceededIntervalBy:J
lload 3
lload 7
lsub
ladd
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncExceededIntervalBy:J
11: aload 0
dup
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
iconst_1
iadd
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
12: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
lconst_0
lcmp
ifle 26
13: getstatic org.apache.cassandra.db.commitlog.AbstractCommitLogService.logger:Lorg/slf4j/Logger;
14: getstatic org.apache.cassandra.utils.NoSpamLogger$Level.WARN:Lorg/apache/cassandra/utils/NoSpamLogger$Level;
15: ldc 5
16: getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
17: ldc "Out of {} commit log syncs over the past {}s with average duration of {}ms, {} have exceeded the configured commit interval by an average of {}ms"
iconst_5
anewarray java.lang.Object
dup
iconst_0
18: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
19: ldc "%.2f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 3
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
lsub
l2d
ldc 1.0E-9
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_2
20: ldc "%.2f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
l2d
ldc 1.0E-6
dmul
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncCount:I
i2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_3
21: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
22: ldc "%.2f"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.syncExceededIntervalBy:J
l2d
ldc 1.0E-6
dmul
aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.lagCount:I
i2d
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aastore
23: invokestatic org.apache.cassandra.utils.NoSpamLogger.log:(Lorg/slf4j/Logger;Lorg/apache/cassandra/utils/NoSpamLogger$Level;JLjava/util/concurrent/TimeUnit;Ljava/lang/String;[Ljava/lang/Object;)Z
istore 9
start local 9 24: iload 9
ifeq 26
25: aload 0
lconst_0
putfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.firstLagAt:J
end local 9 26: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService$SyncRunnable;
0 27 1 pollStarted J
0 27 3 now J
1 27 5 flushDuration J
3 27 7 maxFlushTimestamp J
24 26 9 logged Z
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
pollStarted
now
long getTotalSyncDuration();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable.totalSyncDuration:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/AbstractCommitLogService$SyncRunnable;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "AbstractCommitLogService.java"
NestHost: org.apache.cassandra.db.commitlog.AbstractCommitLogService
InnerClasses:
SyncRunnable = org.apache.cassandra.db.commitlog.AbstractCommitLogService$SyncRunnable of org.apache.cassandra.db.commitlog.AbstractCommitLogService
public final Level = org.apache.cassandra.utils.NoSpamLogger$Level of org.apache.cassandra.utils.NoSpamLogger