better correctness criteria

This commit is contained in:
Xiaoxi Wang 2020-07-09 18:10:12 +00:00
parent 25e55d4b9a
commit c40c4693b4
2 changed files with 10 additions and 11 deletions

View File

@ -123,9 +123,8 @@ struct WriteTagThrottlingWorkload : KVWorkload {
return false;
}
if (writeThrottle) {
if (!badActorThrottleRetries) {
TraceEvent(SevError, "NoThrottleTriggered");
return false;
if (!badActorThrottleRetries && !goodActorThrottleRetries) {
TraceEvent(SevWarn, "NoThrottleTriggered");
}
if (badActorThrottleRetries < goodActorThrottleRetries) {
TraceEvent(SevError, "IncorrectThrottle");

View File

@ -1,11 +1,11 @@
testTitle=withoutWriteThrottling
testName=WriteTagThrottling
txPerSecond=10000000
trPerSecond=10000000
keyCount=5000
absentFrac=0.01
numWritePerTx=1
numReadPerTx=1
numClearPerTx=1
numWritePerTr=1
numReadPerTr=1
numClearPerTr=1
badOpRate = 0.9
testName=HealthMetricsApi
@ -13,12 +13,12 @@ testTitle=withoutWriteThrottling
testTitle=withWriteThrottling
testName=WriteTagThrottling
writeThrottle = true
txPerSecond=10000000
trPerSecond=10000000
keyCount=5000
absentFrac=0.01
numWritePerTx=1
numReadPerTx=1
numClearPerTx=1
numWritePerTr=1
numReadPerTr=1
numClearPerTr=1
badOpRate = 0.9
tpsRate=20