-
Notifications
You must be signed in to change notification settings - Fork 81
fix(clp-s)!: Do not record the archive range index when log-ordering is disabled. #1026
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
fix(clp-s)!: Do not record the archive range index when log-ordering is disabled. #1026
Conversation
WalkthroughThe changes update the help text for a command line option to clarify its behaviour and modify the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CommandLineArguments
participant JsonParser
participant ArchiveWriter
User->>CommandLineArguments: Set "disable-log-order" option
CommandLineArguments-->>User: Show updated help text
User->>JsonParser: parse() or parse_from_ir()
JsonParser->>JsonParser: Check m_record_log_order
alt m_record_log_order is true
JsonParser->>ArchiveWriter: Add metadata fields
JsonParser->>ArchiveWriter: close_current_range()
else m_record_log_order is false
JsonParser-->>ArchiveWriter: Skip metadata and range closing
end
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
⚙️ Source: CodeRabbit Configuration File List of files the instruction was applied to:
🧠 Learnings (2)📓 Common learnings
components/core/src/clp_s/JsonParser.cpp (6)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (6)
✨ Finishing Touches
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
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.
LGTM
Description
Without log-ordering the archive range index has limited usefulness in that the metadata in the range index can not reliably be associated with specific records in the archive. Currently, we still record the archive range index even when log-ordering is disabled. This could sometimes be useful (e.g. if an archive consists of a single range), but probably isn't worth supporting unless users specifically request it.
This PR is marked "fix" because the archive range index was intended to be an optional section partially because of this situation.
Checklist
breaking change.
Validation performed
--disable-log-order
flag does not contain aRangeIndex
metadata packet.Summary by CodeRabbit
Bug Fixes
Documentation