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

Add backup origin when CoW enabled and failed to load primary #2091

Merged
merged 5 commits into from
Jun 28, 2023

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented Jun 27, 2023

Description:

With this PR, the primary index will be backed up immediately when the agent fails to load it with CoW enabled. Before, it was backed up only when it fails to load both primary and old index.

Related Issue:

Versions:

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

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 27, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6e2a17b
Status: ✅  Deploy successful!
Preview URL: https://4f3f0e23.vald.pages.dev
Branch Preview URL: https://feature-agent-add-backup-ori.vald.pages.dev

View logs

@ykadowak ykadowak changed the title add backup origin when CoW enabled and failed to load primary Add backup origin when CoW enabled and failed to load primary Jun 27, 2023
@ykadowak ykadowak requested review from a team, kevindiu and kpango and removed request for a team June 27, 2023 04:26
@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.02 ⚠️

Comparison is base (f1c432f) 29.96% compared to head (4e20e17) 29.94%.

❗ Current head 4e20e17 differs from pull request most recent head 6e2a17b. Consider uploading reports for the commit 6e2a17b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2091      +/-   ##
==========================================
- Coverage   29.96%   29.94%   -0.02%     
==========================================
  Files         369      369              
  Lines       35083    35086       +3     
==========================================
- Hits        10511    10505       -6     
- Misses      24089    24099      +10     
+ Partials      483      482       -1     
Impacted Files Coverage Δ
internal/errors/agent.go 92.68% <ø> (ø)
pkg/agent/core/ngt/service/ngt.go 35.91% <33.33%> (+0.22%) ⬆️

... and 3 files with indirect coverage changes

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

@vankichi vankichi requested review from a team and kmrmt and removed request for kevindiu and a team June 27, 2023 04:42
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
@ykadowak ykadowak requested a review from kpango June 27, 2023 07:24
Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM

@vankichi vankichi force-pushed the feature/agent/add-backup-origin-case-when-cow-enabled branch from 4448b13 to 4e20e17 Compare June 28, 2023 04:45
@ykadowak ykadowak force-pushed the feature/agent/add-backup-origin-case-when-cow-enabled branch from 4e20e17 to 6e2a17b Compare June 28, 2023 04:58
@vankichi vankichi merged commit 7689577 into main Jun 28, 2023
@vankichi vankichi deleted the feature/agent/add-backup-origin-case-when-cow-enabled branch June 28, 2023 05:44
@hlts2 hlts2 mentioned this pull request Sep 13, 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