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] Correction of a bug that returned NotFound as success 0 when balancedUpdate is disabled and all ReplicaAgents returned AlreadyExists (already have the exact same Index). #2011

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

kpango
Copy link
Collaborator

@kpango kpango commented Apr 21, 2023

Description:

Correction of a bug that returned NotFound as success 0 when balancedUpdate is disabled and all ReplicaAgents returned AlreadyExists (already have the exact same Index).

Changes:

  1. Add error handling for all replica returns AlreadyExists.
  2. Add re-Insert process when detected index replica shortage.

API starus befor and after:
Before

  • AlreadyExists count == 0 && location is empty -> NotFound
  • AlreadyExists count == Replica -> NotFound
  • AlreadyExists and Success -> Success

After

  • AlreadyExists count == 0 && location is empty -> NotFound
  • AlreadyExists count == Replica -> AlreadyExists
  • AlreadyExists and Success -> Success

Related Issue:

Versions:

  • Go Version: 1.20.3
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.9

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@kpango kpango changed the title [bugfix] Correction of a bug that returned NotFound as success 0 when balancedUpdate is disabled and all ReplicaAgents are AlreadyExists (already have the exact same Index). [bugfix] Correction of a bug that returned NotFound as success 0 when balancedUpdate is disabled and all ReplicaAgents returned AlreadyExists (already have the exact same Index). Apr 21, 2023
… balancedUpdate is disabled and all ReplicaAgents are AlreadyExists (already have the exact same Index).

Signed-off-by: kpango <kpango@vdaas.org>
@kpango kpango force-pushed the bugfix/lb/disable-balanced-update-error-handling branch from 2f322b9 to 01117f2 Compare April 21, 2023 13:09
@cloudflare-workers-and-pages
Copy link

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

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 01117f2
Status: ✅  Deploy successful!
Preview URL: https://63c1a43c.vald.pages.dev
Branch Preview URL: https://bugfix-lb-disable-balanced-u.vald.pages.dev

View logs

@github-actions
Copy link
Contributor

@vdaas-ci
Copy link
Collaborator

Profile Report

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

@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (538fbee) 29.48% compared to head (01117f2) 29.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2011      +/-   ##
==========================================
- Coverage   29.48%   29.42%   -0.06%     
==========================================
  Files         366      366              
  Lines       34559    34625      +66     
==========================================
+ Hits        10188    10189       +1     
- Misses      23943    24010      +67     
+ Partials      428      426       -2     
Impacted Files Coverage Δ
pkg/gateway/lb/handler/grpc/handler.go 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kpango kpango requested review from vankichi and hlts2 April 24, 2023 01:28
@kpango kpango merged commit b54e81d into main Apr 24, 2023
@kpango kpango deleted the bugfix/lb/disable-balanced-update-error-handling branch April 24, 2023 03:12
@ykadowak ykadowak mentioned this pull request Apr 24, 2023
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.

5 participants