mirror of https://github.com/apache/cassandra
Fix hdr logging for single operation workloads
Patch by Nitsan Wakart; reviewed by tjake for CASSANDRA-12145
This commit is contained in:
parent
8475f891c7
commit
c1dcc9ce46
|
|
@ -1,4 +1,5 @@
|
|||
3.9
|
||||
* Fix hdr logging for single operation workloads (CASSANDRA-12145)
|
||||
* Fix SASI PREFIX search in CONTAINS mode with partial terms (CASSANDRA-12073)
|
||||
* Increase size of flushExecutor thread pool (CASSANDRA-12071)
|
||||
Merged from 3.0:
|
||||
|
|
|
|||
|
|
@ -191,15 +191,18 @@ public class StressMetrics
|
|||
rowRateUncertainty.update(current.adjustedRowRate());
|
||||
if (current.operationCount() != 0)
|
||||
{
|
||||
if (result.intervals.intervals().size() > 1)
|
||||
// if there's a single operation we only print the total
|
||||
final boolean logPerOpSummaryLine = result.intervals.intervals().size() > 1;
|
||||
|
||||
for (Map.Entry<String, TimingInterval> type : result.intervals.intervals().entrySet())
|
||||
{
|
||||
for (Map.Entry<String, TimingInterval> type : result.intervals.intervals().entrySet())
|
||||
final String opName = type.getKey();
|
||||
final TimingInterval opInterval = type.getValue();
|
||||
if (logPerOpSummaryLine)
|
||||
{
|
||||
final String opName = type.getKey();
|
||||
final TimingInterval opInterval = type.getValue();
|
||||
printRow("", opName, opInterval, timing.getHistory().get(type.getKey()), result.extra, rowRateUncertainty, output);
|
||||
logHistograms(opName, opInterval);
|
||||
}
|
||||
logHistograms(opName, opInterval);
|
||||
}
|
||||
|
||||
printRow("", "total", current, history, result.extra, rowRateUncertainty, output);
|
||||
|
|
|
|||
Loading…
Reference in New Issue