-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
yoj-project/repository-ydb-v2/src/main/java/tech/ydb/yoj/repository/ydb/client/YdbValidator.java
Line 94 in a298294
| PRECONDITION_FAILED -> { |
PRECONDITION_FAILED is mapped to YdbComponentUnavailableException. YdbComponentUnavailableException is in turn a RetryableException which is then handled by StdTxManager by retrying it as all such errors.
this leads to unneeded retries for errors like this:
Caused by: tech.ydb.yoj.repository.ydb.exception.YdbComponentUnavailableException: SELECT ...
Fail{Status{code = PRECONDITION_FAILED(code=400120), issues = [#2013 Query result size limit exceeded. (60480691 > 50331648) (S_ERROR)]}}
YDB docs labels PRECONDITION_FAILED as not retryable https://ydb.tech/docs/en/reference/ydb-sdk/ydb-status-codes?version=v25.2#precondition-failed.
suggestion: map PRECONDITION_FAILED to YdbRepositoryException
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels