Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes WriteRelationships/BulkImport GRPC error codes on conflicts and retryable errors #1688

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Dec 19, 2023

Built to support authzed/zed#316

Adjusts BulkImport so it returns gRPC codes to let clients know if it's ok to retry.

  • duplicate relationship now reports gRPC code AlreadyExists
  • retriable errors now return grpc code Unavailable

@vroldanbet vroldanbet self-assigned this Dec 19, 2023
@github-actions github-actions bot added the area/datastore Affects the storage system label Dec 19, 2023
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch 2 times, most recently from 302cd04 to 9eb6f64 Compare December 19, 2023 15:13
@github-actions github-actions bot added the area/dependencies Affects dependencies label Dec 19, 2023
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch 2 times, most recently from d53ed6a to edd6162 Compare December 19, 2023 17:16
@vroldanbet vroldanbet marked this pull request as ready for review December 19, 2023 17:17
@vroldanbet vroldanbet requested a review from a team as a code owner December 19, 2023 17:17
@vroldanbet vroldanbet changed the title fixes CRDB datastore errors not reporting proper GRPC codes fixes BulkImport GRPC error codes on conflicts and retriable errors Dec 19, 2023
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch from edd6162 to 1ebc5a2 Compare December 19, 2023 17:37
@vroldanbet vroldanbet changed the title fixes BulkImport GRPC error codes on conflicts and retriable errors fixes WriteRelationships/BulkImport GRPC error codes on conflicts and retryable errors Dec 20, 2023
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch from 1ebc5a2 to 9630ab3 Compare December 20, 2023 11:31
@github-actions github-actions bot removed the area/dependencies Affects dependencies label Dec 20, 2023
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch from 9630ab3 to 216da23 Compare December 20, 2023 11:32
- duplicate relationship now reports gRPC code AlreadyExists
- retryable errors now return grpc code Unavailable
@vroldanbet vroldanbet force-pushed the fix-error-codes-conflict-and-retryable-crdb branch from 216da23 to 46ba52d Compare December 20, 2023 13:07
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vroldanbet vroldanbet added this pull request to the merge queue Dec 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 20, 2023
@vroldanbet vroldanbet added this pull request to the merge queue Dec 20, 2023
Merged via the queue into main with commit 7549694 Dec 20, 2023
20 checks passed
@vroldanbet vroldanbet deleted the fix-error-codes-conflict-and-retryable-crdb branch December 20, 2023 18:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants