-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add PARTITION_UNAVAILABLE error code when partition pauses proc…
…essing (#23654) ## Description Create a new `PARTITION_UNAVAILABLE` error code corresponding to when a partition pauses processing requests. ## Checklist - [x] Add a new `PARTITION_UNAVAILABLE` error code (as in, to the SBE generated `ErrorCode` enum), which is documented as meaning that the command cannot be processed because the processor is temporarily unavailable. - [x] Update the `CommandApiRequestHandler` to return this error, instead of the current `INTERNAL_ERROR`. - [x] Map `PARTITION_UNAVAILABLE` error code in `GrpcErrorMapper` such that the error is logged as debug, and the mapped gRPC error is `UNAVAILABLE`. - [x] Map `PARTITION_UNAVAILABLE` error code in `RestErrorMapper` such that the error is logged as debug, and the mapped HTTP code is 503 (`SERVICE_UNAVAILABLE`). - [x] Write test for `GrpcErrorMapper` - [x] Write test for `RestErrorMapper` in `ErrorMapperTest` - [x] Updated integration/QA regression tests ## Related issues closes #22928
- Loading branch information
Showing
9 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters