Skip to content

feat: Enforce CDC requirement for High Availability deployments - #693

Merged
kalbasit merged 4 commits into
mainfrom
02-01-feat_enforce_cdc_requirement_for_high_availability_deployments
Feb 2, 2026
Merged

kalbasit merged 4 commits into
mainfrom
02-01-feat_enforce_cdc_requirement_for_high_availability_deployments

Conversation

@kalbasit

@kalbasit kalbasit commented Feb 2, 2026 •

Copy link
Copy Markdown
Owner

This change modifies the Helm chart to ensure that Content-Defined Chunking (CDC) is enabled when the replica count is greater than 1 (High Availability mode). Running multiple replicas without CDC can lead to data inconsistency and corruption as documented in issue #660.

  • Updates charts/ncps/templates/_helpers.tpl to fail rendering if replicaCount > 1 and config.cdc.enabled is false.
  • Adds a bypass mechanism via config.cdc.iLoveTimeouts for users who explicitly accept the risk.
  • Updates documentation in docs/User Guide/Deployment/High Availability.md and charts/ncps/templates/NOTES.txt to reflect this critical requirement.
  • Updates charts/ncps/values.yaml with the new configuration option config.cdc.iLoveTimeouts.

Part of #322

This change modifies the Helm chart to ensure that Content-Defined Chunking (CDC) is enabled when the replica count is greater than 1 (High Availability mode). Running multiple replicas without CDC can lead to data inconsistency and corruption as documented in issue #660.

- Updates `charts/ncps/templates/_helpers.tpl` to fail rendering if `replicaCount > 1` and `config.cdc.enabled` is false.
- Adds a bypass mechanism via `config.cdc.iLoveTimeouts` for users who explicitly accept the risk.
- Updates documentation in `docs/User Guide/Deployment/High Availability.md` and `charts/ncps/templates/NOTES.txt` to reflect this critical requirement.
- Updates `charts/ncps/values.yaml` with the new configuration option `config.cdc.iLoveTimeouts`.
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation helm labels Feb 2, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @kalbasit, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the robustness of High Availability deployments by enforcing the use of Content-Defined Chunking (CDC). It introduces a validation mechanism within the Helm chart that prevents deployments with multiple replicas from running without CDC, which is crucial for maintaining data integrity and stability. The changes also provide an explicit override for advanced users and update all relevant documentation to clearly communicate this critical requirement.

Highlights

  • Enforced CDC for High Availability: The Helm chart now strictly requires Content-Defined Chunking (CDC) to be enabled for deployments with 'replicaCount > 1' to prevent data inconsistency and corruption, as detailed in issue ncps does not handle NAR streaming in a multi-instance HA setup #660.
  • CDC Bypass Mechanism: A new configuration option, 'config.cdc.iLoveTimeouts', has been introduced, allowing users to explicitly bypass the CDC enforcement at their own risk, acknowledging potential timeouts and instability.
  • Documentation Updates: Key documentation files, including 'README.md', 'charts/ncps/templates/NOTES.txt', and 'docs/User Guide/Deployment/High Availability.md', have been updated to clearly state the critical requirement of CDC for High Availability setups.
  • Helm Chart Configuration: The 'charts/ncps/values.yaml' file has been updated to include comments regarding the CDC requirement for HA and to introduce the 'config.cdc.iLoveTimeouts' option.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

kalbasit commented Feb 2, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a critical validation to the Helm chart, enforcing that Content-Defined Chunking (CDC) is enabled for High Availability (HA) deployments to prevent data corruption. This is implemented by failing the Helm deployment if replicaCount > 1 and CDC is not enabled, with an explicit bypass flag for users who accept the risk. The changes also include updates to documentation and post-install notes to warn users about this requirement. The changes are well-implemented and address a significant potential issue. My feedback focuses on improving the consistency and clarity of the warning messages across the codebase to ensure users fully understand the risks of not enabling CDC in HA mode, aligning with the rule to prevent unsafe configurations through validation.

Comment thread charts/ncps/templates/_helpers.tpl Resolved
Comment thread charts/ncps/values.yaml Resolved
@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Feb 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.16%. Comparing base (6048061) to head (1c432f9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #693   +/-   ##
=======================================
  Coverage   79.16%   79.16%           
=======================================
  Files           2        2           
  Lines         456      456           
=======================================
  Hits          361      361           
  Misses         83       83           
  Partials       12       12           

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

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

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 2, 2026
@kalbasit
kalbasit enabled auto-merge (squash) February 2, 2026 06:45
@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

@kalbasit
kalbasit merged commit 658c1a9 into main Feb 2, 2026
@kalbasit
kalbasit deleted the 02-01-feat_enforce_cdc_requirement_for_high_availability_deployments branch February 2, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation helm size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant