Repository navigation
Conversation
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`.
Summary of ChangesHello @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
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|

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.
charts/ncps/templates/_helpers.tplto fail rendering ifreplicaCount > 1andconfig.cdc.enabledis false.config.cdc.iLoveTimeoutsfor users who explicitly accept the risk.docs/User Guide/Deployment/High Availability.mdandcharts/ncps/templates/NOTES.txtto reflect this critical requirement.charts/ncps/values.yamlwith the new configuration optionconfig.cdc.iLoveTimeouts.Part of #322