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

Fix(2.3): fix some bugs and improve the delta-compaction #1998

Merged

Conversation

zipper-meng
Copy link
Member

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Which issue does this PR close?

Related #.

Rationale for this change

  • Fix some typos.
  • Modifications in TimeRanges::add_time_range
    Now it merges [(t1, t2), (t2+1, t3)] into (t1, t3), at previous it won't merge them.
  • Replace method CompactReq::out_time_range() to field CompactReq::out_time_range
    • In order to simplify the code.
    • It is TimeRange::all() when picking for normal compaction, while it has a lot of different logic in delta compaction picking.
  • Fix a bug in DeltaCompactionPicker::pick_compaction()
    It did not reset ColumnFile::compacting when delta-files-num is lesser than the trigger.

Are there any user-facing changes?

No.

@zipper-meng zipper-meng changed the title Feature(2.3): fix some bugs and improve the delta-compaction Fix(2.3): fix some bugs and improve the delta-compaction Mar 1, 2024
…inits in pickers; delta picker hasn't reset ColumnFile::compacting if delta-files-num is lesser than the trigger; TimeRanges::add_time_range() will join (t,t1) and (t1+1,t2)
@zipper-meng zipper-meng force-pushed the feature/lts_2.3/delta_compaction_v3 branch from e6c7713 to 88f72d9 Compare March 1, 2024 10:41
@roseboy-liu roseboy-liu merged commit 6d748fb into cnosdb:LTS/2.3 Mar 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants