Skip to content

Commit 0b3e688

Browse files
committed
trigger StatusLogger if concurrent phases take too long
1 parent f7d3e05 commit 0b3e688

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/java/org/apache/cassandra/service/GCInspector.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ else if (duration > getGcConcurrentPhaseLogThresholdInMs())
296296
logger.info(sb.toString());
297297
else if (logger.isTraceEnabled())
298298
logger.trace(sb.toString());
299-
// TODO: trigger StatusLogger if concurrent phases take too long?
299+
if (duration > this.getConcurrentStatusThresholdInMs())
300+
StatusLogger.log();
300301
}
301302
else
302303
{
@@ -479,4 +480,8 @@ public long getStatusThresholdInMs()
479480
return getGcWarnThresholdInMs() != 0 ? getGcWarnThresholdInMs() : getGcLogThresholdInMs();
480481
}
481482

483+
public long getConcurrentStatusThresholdInMs()
484+
{
485+
return getGcConcurrentPhaseWarnThresholdInMs() != 0 ? getGcConcurrentPhaseWarnThresholdInMs() : getGcConcurrentPhaseLogThresholdInMs();
486+
}
482487
}

0 commit comments

Comments
 (0)