bsc state error (#539)
This commit is contained in:
@@ -43,6 +43,7 @@ class EthereumLowerBoundStateDetector(
|
|||||||
"load state tree: failed to load state tree", // filecoin
|
"load state tree: failed to load state tree", // filecoin
|
||||||
"purged for block", // erigon
|
"purged for block", // erigon
|
||||||
"No state data", // our own error if there is "null" in response
|
"No state data", // our own error if there is "null" in response
|
||||||
|
"state is not available", // bsc also can return this error along with "header not found"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -169,14 +169,24 @@ class RecursiveLowerBound(
|
|||||||
!nonRetryableErrors.any { err -> it.message?.contains(err, true) ?: false }
|
!nonRetryableErrors.any { err -> it.message?.contains(err, true) ?: false }
|
||||||
}
|
}
|
||||||
.doAfterRetry {
|
.doAfterRetry {
|
||||||
log.debug(
|
if (it.totalRetries() > 30) {
|
||||||
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
|
log.warn(
|
||||||
block,
|
"There are too much retries to calculate {} lower bound of upstream {}, " +
|
||||||
upstream.getId(),
|
"probably this error with message `{}` is not retryable, please report it to dshackle devs",
|
||||||
type,
|
type,
|
||||||
it.totalRetries(),
|
upstream.getId(),
|
||||||
it.failure().message,
|
it.failure().message,
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
log.debug(
|
||||||
|
"Error in calculation of lower block {} of upstream {}, type - {}, retry attempt - {}, message - {}",
|
||||||
|
block,
|
||||||
|
upstream.getId(),
|
||||||
|
type,
|
||||||
|
it.totalRetries(),
|
||||||
|
it.failure().message,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user