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

enhance: Purge delete buffer asap after all L0 segment ready #35304

Closed

Conversation

congqixia
Copy link
Contributor

See also #35303

@congqixia congqixia changed the title enhance: Purge delete buffer asap all L0 segment ready enhance: Purge delete buffer asap after all L0 segment ready Aug 6, 2024
@sre-ci-robot sre-ci-robot requested review from aoiasd and yah01 August 6, 2024 07:35
@sre-ci-robot sre-ci-robot added the size/XS Denotes a PR that changes 0-9 lines. label Aug 6, 2024
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Aug 6, 2024
@mergify mergify bot added the ci-passed label Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.82%. Comparing base (3c9a47c) to head (9725c52).
Report is 273 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #35304       +/-   ##
===========================================
+ Coverage   72.41%   84.82%   +12.40%     
===========================================
  Files        1217      944      -273     
  Lines      143721   119423    -24298     
===========================================
- Hits       104075   101298     -2777     
+ Misses      35225    13698    -21527     
- Partials     4421     4427        +6     
Files with missing lines Coverage Δ
internal/querynodev2/delegator/delegator_data.go 88.56% <100.00%> (+0.01%) ⬆️

... and 307 files with indirect coverage changes

@@ -668,6 +668,9 @@ func (sd *shardDelegator) loadStreamDelete(ctx context.Context,
}
}

// if segment level is not L0, delete buffer could be purged safely according to target checkpoint
sd.deleteBuffer.TryDiscard(position.GetTimestamp())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we change the synctarget version func?

instead use checkpoint timestamp, we can use L0 segment's last message?

Copy link

stale bot commented Sep 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@stale stale bot added the stale indicates no udpates for 30 days label Sep 5, 2024
@stale stale bot closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement size/XS Denotes a PR that changes 0-9 lines. stale indicates no udpates for 30 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants