Merge pull request #3577 from xis19/master
Add File field in TestFailure event for cycleCheck and incrementCheck
This commit is contained in:
commit
ec4e706a93
|
@ -207,7 +207,10 @@ struct CycleWorkload : TestWorkload {
|
|||
}
|
||||
ACTOR Future<bool> cycleCheck( Database cx, CycleWorkload* self, bool ok ) {
|
||||
if (self->transactions.getMetric().value() < self->testDuration * self->minExpectedTransactionsPerSecond) {
|
||||
TraceEvent(SevWarnAlways, "TestFailure").detail("Reason", "Rate below desired rate").detail("Details", format("%.2f", self->transactions.getMetric().value() / (self->transactionsPerSecond * self->testDuration)))
|
||||
TraceEvent(SevWarnAlways, "TestFailure")
|
||||
.detail("Reason", "Rate below desired rate")
|
||||
.detail("File", __FILE__)
|
||||
.detail("Details", format("%.2f", self->transactions.getMetric().value() / (self->transactionsPerSecond * self->testDuration)))
|
||||
.detail("TransactionsAchieved", self->transactions.getMetric().value())
|
||||
.detail("MinTransactionsExpected", self->testDuration * self->minExpectedTransactionsPerSecond)
|
||||
.detail("TransactionGoal", self->transactionsPerSecond * self->testDuration);
|
||||
|
|
|
@ -135,7 +135,10 @@ struct Increment : TestWorkload {
|
|||
}
|
||||
ACTOR Future<bool> incrementCheck( Database cx, Increment* self, bool ok ) {
|
||||
if (self->transactions.getMetric().value() < self->testDuration * self->minExpectedTransactionsPerSecond) {
|
||||
TraceEvent(SevWarnAlways, "TestFailure").detail("Reason", "Rate below desired rate").detail("Details", format("%.2f", self->transactions.getMetric().value() / (self->transactionsPerSecond * self->testDuration)))
|
||||
TraceEvent(SevWarnAlways, "TestFailure")
|
||||
.detail("Reason", "Rate below desired rate")
|
||||
.detail("File", __FILE__)
|
||||
.detail("Details", format("%.2f", self->transactions.getMetric().value() / (self->transactionsPerSecond * self->testDuration)))
|
||||
.detail("TransactionsAchieved", self->transactions.getMetric().value())
|
||||
.detail("MinTransactionsExpected", self->testDuration * self->minExpectedTransactionsPerSecond)
|
||||
.detail("TransactionGoal", self->transactionsPerSecond * self->testDuration);
|
||||
|
|
Loading…
Reference in New Issue