Skip to content

[Enhancement]: Move the sort stats task into the sort compaction #42560

Open
@xiaocai2333

Description

@xiaocai2333

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to be added?

Move the sort stats task into sort compaction:

  1. Treat the sort task as a type of mixCompaction task;
  2. Leverage the mutual exclusion mechanism on channels between mixCompaction and L0Compaction to ensure exclusivity between sort and L0Compaction;
  3. The isStating flag can be removed;
  4. The stats task no longer needs to mark the segment as compacting or isStating.

Why is this needed?

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

kind/enhancementIssues or changes related to enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions