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

[bugfix] gRPC pool connection health check for DNS Addr may fail during VIP member disconnection #2277

Conversation

kpango
Copy link
Collaborator

@kpango kpango commented Dec 21, 2023

Description:

SSIA

Related Issue:

Versions:

  • Go Version: 1.21.5
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.28.4
  • NGT Version: 2.1.6

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@kpango kpango marked this pull request as draft December 21, 2023 05:42
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (ceb04ea) 30.02% compared to head (8c61bfb) 29.99%.
Report is 4 commits behind head on main.

Files Patch % Lines
internal/net/grpc/pool/pool.go 0.00% 35 Missing ⚠️
internal/net/grpc/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2277      +/-   ##
==========================================
- Coverage   30.02%   29.99%   -0.04%     
==========================================
  Files         371      371              
  Lines       36089    36115      +26     
==========================================
- Hits        10837    10832       -5     
- Misses      24738    24770      +32     
+ Partials      514      513       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kpango kpango force-pushed the bugfix/internal-grpc/A-Record-health-check-failure-during-target-vip-member-restarts branch from d8ca6ff to c40b91a Compare December 21, 2023 05:46
Copy link

cloudflare-workers-and-pages bot commented Dec 21, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8c61bfb
Status: ✅  Deploy successful!
Preview URL: https://7f8b7182.vald.pages.dev
Branch Preview URL: https://bugfix-internal-grpc-a-recor.vald.pages.dev

View logs

@kpango kpango force-pushed the bugfix/internal-grpc/A-Record-health-check-failure-during-target-vip-member-restarts branch 3 times, most recently from 4c391b4 to 2c374b3 Compare December 21, 2023 05:59
…ng VIP member disconnection

fix

Signed-off-by: kpango <kpango@vdaas.org>
@kpango kpango force-pushed the bugfix/internal-grpc/A-Record-health-check-failure-during-target-vip-member-restarts branch from 2c374b3 to bd15979 Compare December 21, 2023 05:59
if !p.isIP && p.resolveDNS && hash != nil && *hash != "" {
ips, err := p.lookupIPAddr(ctx)
if err != nil {
return p, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
error is not nil (line 392) but it returns nil (nilerr)

@vdaas-ci
Copy link
Collaborator

Profile Report

typevald-agent-ngtvald-lb-gatewayvald-discoverervald-manager-index
cpu
heap
other images

@kpango kpango marked this pull request as ready for review December 21, 2023 07:19
@kpango kpango requested review from a team, kmrmt and hlts2 and removed request for a team December 21, 2023 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants