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: Make dynamic load/release partition follow targets #38059

Merged

Conversation

congqixia
Copy link
Contributor

Related to #37849

@sre-ci-robot sre-ci-robot added size/XL Denotes a PR that changes 500-999 lines. approved labels Nov 27, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Nov 27, 2024
Copy link
Contributor

mergify bot commented Nov 27, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 27, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 89.21569% with 11 lines in your changes missing coverage. Please review.

Project coverage is 81.08%. Comparing base (af288a9) to head (019cdfa).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
internal/querynodev2/segments/validate.go 28.57% 3 Missing and 2 partials ⚠️
internal/querycoordv2/job/utils.go 72.72% 3 Missing ⚠️
internal/querycoordv2/meta/target_manager.go 72.72% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #38059       +/-   ##
===========================================
+ Coverage   68.85%   81.08%   +12.23%     
===========================================
  Files         289     1372     +1083     
  Lines       25508   191467   +165959     
===========================================
+ Hits        17563   155252   +137689     
- Misses       7945    30727    +22782     
- Partials        0     5488     +5488     
Components Coverage Δ
Client 74.43% <ø> (∅)
Core 68.85% <ø> (ø)
Go 83.21% <89.21%> (∅)
Files with missing lines Coverage Δ
internal/querycoordv2/job/job_load.go 87.17% <100.00%> (ø)
internal/querycoordv2/job/job_release.go 81.35% <100.00%> (ø)
internal/querycoordv2/job/job_sync.go 80.95% <100.00%> (ø)
internal/querycoordv2/job/undo.go 73.52% <ø> (ø)
internal/querycoordv2/observers/target_observer.go 90.08% <100.00%> (ø)
internal/querycoordv2/services.go 86.59% <100.00%> (ø)
internal/querycoordv2/task/executor.go 80.57% <100.00%> (ø)
internal/querycoordv2/utils/meta.go 71.22% <100.00%> (ø)
internal/querynodev2/delegator/delegator.go 87.16% <100.00%> (ø)
internal/querynodev2/delegator/delegator_data.go 84.82% <100.00%> (ø)
... and 6 more

... and 1067 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

@congqixia
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 28, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 29, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Nov 29, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

if err != nil {
msg := "failed to store partitions"
log.Warn(msg, zap.Error(err))
return errors.Wrap(err, msg)
}

return nil
// manual trigger update next target
ready, err := job.targetObserver.UpdateNextTarget(req.GetCollectionID())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Compared to before, awaiting the next target here, if the next target includes an accompanying segment change, the execution time here will be prolonged, potentially affecting the time taken by RootCoord to execute create_partition

@xiaofan-luan
Copy link
Collaborator

good job, this looks to be much cleaner to me.

The major draw back czs point out is ok to me

@congqixia congqixia force-pushed the enhance/dyn_partitions_targets branch from 829bc7f to 021a796 Compare December 5, 2024 00:22
Copy link
Contributor

mergify bot commented Dec 5, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 5, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

@congqixia
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Dec 5, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 5, 2024

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@congqixia congqixia force-pushed the enhance/dyn_partitions_targets branch from 021a796 to 7f0191e Compare December 5, 2024 01:12
@congqixia congqixia force-pushed the enhance/dyn_partitions_targets branch from 7f0191e to 019cdfa Compare December 5, 2024 03:24
@mergify mergify bot added the ci-passed label Dec 5, 2024
@xiaofan-luan
Copy link
Collaborator

/lgtm
/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, xiaofan-luan

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

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 lgtm size/XL Denotes a PR that changes 500-999 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants