-
Notifications
You must be signed in to change notification settings - Fork 4
Settings: Stopped flagging gateway.recover_after_time
as a difference
#521
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughAdds a gateway-specific guard in compare_cluster_settings to skip flagging Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant Comparator as SettingsComparator
participant Flat as flat_settings
Caller->>Comparator: compare_cluster_settings(flat_settings)
Comparator->>Flat: read "gateway.recover_after_time"
alt key == "gateway.recover_after_time"
Comparator->>Flat: read "gateway.expected_nodes", "gateway.expected_data_nodes"
alt value == "0ms" and both == -1
note right of Comparator #DFF2E1: Skip reporting this key (default scenario)
Comparator-->>Caller: continue loop (no diff)
else
note right of Comparator #FFF4D6: Apply standard comparisons
Comparator->>Comparator: add to non_default_settings (set)
end
else
Comparator->>Comparator: apply existing time/memory/other comparisons
Comparator->>Comparator: add to non_default_settings (set)
end
Comparator-->>Caller: return non_default_settings (deduped)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
CHANGES.md (1)
4-6
: Tighten wording; clarify semantics and reference the issueClarify that "not defined" means both settings are at their unset sentinel (-1), and add the issue reference for traceability.
-- Settings: Stopped flagging `gateway.recover_after_time` as a difference - when `gateway.expected_nodes` and `gateway.expected_data_nodes` are not - defined. +- Settings: Stop flagging `gateway.recover_after_time` as a difference + when both `gateway.expected_nodes` and `gateway.expected_data_nodes` are + unset (-1). See GH-520.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
CHANGES.md
(1 hunks)cratedb_toolkit/settings/compare.py
(1 hunks)
... when `gateway.expected_nodes` and `gateway.expected_data_nodes` are not defined.
aa10402
to
e0565a9
Compare
About
... when
gateway.expected_nodes
andgateway.expected_data_nodes
are not defined.References
ctk settings compare
: Emits signal aboutgateway.recover_after_time
on a fresh cluster #520