-
- Downloads
Add structured error parsing for user_cherry_pick
Gitaly's UserCherryPick RPC will begin to return structured errors. The reason is that currently we return an error message embedded in the response and hence it looks like the RPC succeeded. This not only hides errors in the metrics and logs, Praefect will also expect transaction voting to happen correctly for successful requests. However, an error happened which sometimes causes voting to not happen at all. In this situation, Praefect will schedule unneeded replication jobs. This change prepares for the Gitaly change by putting in place code that parses the structured error and raises the same errors as it did when parsing the response for the analagous errors. Changelog: changed
parent
c3fbac77
No related branches found
No related tags found
This commit is part of merge request !86594. Comments created here will be created in the context of that merge request.
Showing
- Gemfile 1 addition, 1 deletionGemfile
- Gemfile.lock 2 additions, 2 deletionsGemfile.lock
- lib/gitlab/gitaly_client/operation_service.rb 15 additions, 0 deletionslib/gitlab/gitaly_client/operation_service.rb
- spec/lib/gitlab/gitaly_client/operation_service_spec.rb 73 additions, 5 deletionsspec/lib/gitlab/gitaly_client/operation_service_spec.rb
... | @@ -483,7 +483,7 @@ gem 'ssh_data', '~> 1.2' | ... | @@ -483,7 +483,7 @@ gem 'ssh_data', '~> 1.2' |
gem 'spamcheck', '~> 0.1.0' | gem 'spamcheck', '~> 0.1.0' | ||
# Gitaly GRPC protocol definitions | # Gitaly GRPC protocol definitions | ||
gem 'gitaly', '~> 14.10.0-rc1' | gem 'gitaly', '~> 15.0.0-rc2' | ||
# KAS GRPC protocol definitions | # KAS GRPC protocol definitions | ||
gem 'kas-grpc', '~> 0.0.2' | gem 'kas-grpc', '~> 0.0.2' | ||
... | ... |
Please register or sign in to comment