Skip to content

ringhash: normalize uppercase in requestHashHeader from service config #8243

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

yousukseung
Copy link
Contributor

@yousukseung yousukseung commented Apr 11, 2025

With gRFC A76 (#8159), when requestHashHeader is specified from the service config it fails the validation since MD keys with uppercase letters are normalized to lowercase. We should normalize the parsed value before validation.

RELEASE NOTES: N/A

Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.12%. Comparing base (732f3f3) to head (3b8052a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8243      +/-   ##
==========================================
+ Coverage   82.09%   82.12%   +0.02%     
==========================================
  Files         412      412              
  Lines       40491    40492       +1     
==========================================
+ Hits        33242    33253      +11     
+ Misses       5876     5874       -2     
+ Partials     1373     1365       -8     
Files with missing lines Coverage Δ
xds/internal/balancer/ringhash/config.go 92.30% <100.00%> (+0.20%) ⬆️

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yousukseung yousukseung force-pushed the ring-hash-md-lowercase branch from f9007f4 to 44d5dea Compare April 11, 2025 17:56
With gRFC A76 (grpc#8159), when requestHashHeader is specified from the
service config it fails the validation since MD keys with uppercase
letters are normalized to lowercase. We should normalize the parsed
value before validation.
@yousukseung yousukseung force-pushed the ring-hash-md-lowercase branch from 44d5dea to 3b8052a Compare April 11, 2025 19:00
@arjan-bal arjan-bal requested a review from atollena April 14, 2025 03:29
@arjan-bal arjan-bal added this to the 1.73 Release milestone Apr 14, 2025
@arjan-bal arjan-bal added the Area: Resolvers/Balancers Includes LB policy & NR APIs, resolver/balancer/picker wrappers, LB policy impls and utilities. label Apr 14, 2025
@arjan-bal
Copy link
Contributor

@yousukseung the test failure may be related to the changes in the PR, can you PTAL: https://github.com/grpc/grpc-go/actions/runs/14410175562/job/40416016501?pr=8243

@arjan-bal arjan-bal assigned yousukseung and unassigned atollena and yousukseung Apr 14, 2025
@atollena
Copy link
Collaborator

@yousukseung the test failure may be related to the changes in the PR, can you PTAL: https://github.com/grpc/grpc-go/actions/runs/14410175562/job/40416016501?pr=8243

I was able to reproduce the failure on the master branch, I opened #8247 to track this.

@arjan-bal arjan-bal merged commit 6319a2c into grpc:master Apr 14, 2025
15 checks passed
purnesh42H pushed a commit to purnesh42H/grpc-go that referenced this pull request Apr 16, 2025
purnesh42H added a commit that referenced this pull request Apr 16, 2025
janardhanvissa pushed a commit to janardhanvissa/grpc-go that referenced this pull request Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Resolvers/Balancers Includes LB policy & NR APIs, resolver/balancer/picker wrappers, LB policy impls and utilities. Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants