mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
CORDA-1494: Minor - improve error message when max retries reached for notarisation (#3355)
This commit is contained in:
committed by
Rick Parker
parent
7fec9df99e
commit
d5d46c674d
@ -206,7 +206,11 @@ class StaffedFlowHospital {
|
|||||||
if (history.notDischargedForTheSameThingMoreThan(newError.maxRetries, this)) {
|
if (history.notDischargedForTheSameThingMoreThan(newError.maxRetries, this)) {
|
||||||
return Diagnosis.DISCHARGE
|
return Diagnosis.DISCHARGE
|
||||||
} else {
|
} else {
|
||||||
log.warn("\"Maximum number of retries reached for timed flow ${flowFiber.javaClass}")
|
val errorMsg = "Maximum number of retries reached for flow ${flowFiber.snapshot().flowLogic.javaClass}." +
|
||||||
|
"If the flow involves notarising a transaction, this usually means that the notary is being overloaded and" +
|
||||||
|
"unable to service requests fast enough. Please try again later."
|
||||||
|
newError.setMessage(errorMsg)
|
||||||
|
log.warn(errorMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Diagnosis.NOT_MY_SPECIALTY
|
return Diagnosis.NOT_MY_SPECIALTY
|
||||||
|
Reference in New Issue
Block a user