fix: lance error TooMuchWriteContention should be converted to a retryable namespace error.#6177
Conversation
|
ACTION NEEDED The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. For details on the error please inspect the "PR Title Check" action. |
…yable namespace error.
7e7e44e to
78f4636
Compare
ReviewThe semantic fix is correct: One minor issue: The doc comment on This should be updated to reflect the new mapping ( Otherwise LGTM. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
In semantics, I think TooMuchWriteContention should be converted to NamespaceError::Throttled. Because TooMuchWriteContention is caused by RetryableCommitConflict, which means too many concurrent commits and can be retried, just like CommitConflict.
Currently, TooMuchWriteContention and IncompatibleTransaction are both converted into NamespaceError::ConcurrentModification. Since RetryableCommitConflict should be retry and IncompatibleTransaction should not, the caller can't distinguish whether the ConcurrentModification error should be retried