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: Reduce GetRecoveryInfo calls #37863

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

bigsheeper
Copy link
Contributor

  1. Introduce a data view mechanism for DataCoord, attempting to update each collection's data view periodically.
  2. QueryCoord maintains a cache of data view versions. Before batch-fetching recovery info, it retrieves all versions and only fetches recovery info for collections with updated versions.
  3. Return DataCoord's current data view when fetching RecoverInfo.

issue: #37743, #37630

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bigsheeper
To complete the pull request process, please assign xiaofan-luan after the PR has been reviewed.
You can assign the PR to them by writing /assign @xiaofan-luan in a comment when ready.

The full list of commands accepted by this bot can be found 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

@sre-ci-robot sre-ci-robot added the size/XL Denotes a PR that changes 500-999 lines. label Nov 20, 2024
@bigsheeper bigsheeper changed the title enhance: Reduce GetRecoveryInfo calls from querycoord enhance: Reduce GetRecoveryInfo calls Nov 20, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Nov 20, 2024
@bigsheeper
Copy link
Contributor Author

bigsheeper commented Nov 20, 2024

/hold
ut need to be added

@bigsheeper bigsheeper added the 10kcp PR related to 10k collection partitions Project label Nov 20, 2024
Copy link
Contributor

mergify bot commented Nov 20, 2024

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

Copy link
Contributor

mergify bot commented Nov 20, 2024

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

Copy link
Contributor

mergify bot commented Nov 20, 2024

@bigsheeper cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 90.55944% with 27 lines in your changes missing coverage. Please review.

Project coverage is 82.78%. Comparing base (2afe2ea) to head (0147eb6).
Report is 81 commits behind head on master.

Files with missing lines Patch % Lines
internal/datacoord/services.go 81.70% 11 Missing and 4 partials ⚠️
internal/datacoord/dataview/view_manager.go 93.13% 6 Missing and 1 partial ⚠️
internal/datacoord/handler.go 0.00% 3 Missing ⚠️
internal/querycoordv2/observers/target_observer.go 95.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #37863      +/-   ##
==========================================
+ Coverage   80.91%   82.78%   +1.87%     
==========================================
  Files        1375     1085     -290     
  Lines      193645   167770   -25875     
==========================================
- Hits       156692   138892   -17800     
+ Misses      31418    23349    -8069     
+ Partials     5535     5529       -6     
Components Coverage Δ
Client 74.58% <ø> (ø)
Core ∅ <ø> (∅)
Go 83.02% <90.55%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
internal/datacoord/dataview/update_chan.go 100.00% <100.00%> (ø)
internal/datacoord/server.go 73.34% <100.00%> (+0.11%) ⬆️
internal/distributed/datacoord/client/client.go 96.28% <100.00%> (+0.07%) ⬆️
internal/distributed/datacoord/service.go 89.49% <100.00%> (-1.02%) ⬇️
internal/querycoordv2/meta/coordinator_broker.go 93.85% <100.00%> (+2.41%) ⬆️
pkg/util/paramtable/component_param.go 98.38% <100.00%> (+<0.01%) ⬆️
pkg/util/typeutil/map.go 100.00% <100.00%> (+8.75%) ⬆️
internal/querycoordv2/observers/target_observer.go 87.30% <95.00%> (+1.18%) ⬆️
internal/datacoord/handler.go 74.62% <0.00%> (-0.69%) ⬇️
internal/datacoord/dataview/view_manager.go 93.13% <93.13%> (ø)
... and 1 more

... and 321 files with indirect coverage changes

czs007 pushed a commit that referenced this pull request Nov 21, 2024
1. Introduce a data view mechanism for DataCoord, attempting to update
each collection's data view periodically.
2. QueryCoord maintains a cache of data view versions. Before
batch-fetching recovery info, it retrieves all versions and only fetches
recovery info for collections with updated versions.
3. Return DataCoord's current data view when fetching RecoverInfo.

issue: #37743,
#37630

pr: #37863

Signed-off-by: bigsheeper <[email protected]>
Copy link
Contributor

mergify bot commented Nov 21, 2024

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

@sre-ci-robot sre-ci-robot added size/XXL Denotes a PR that changes 1000+ lines. and removed size/XL Denotes a PR that changes 500-999 lines. labels Nov 21, 2024
Copy link
Contributor

mergify bot commented Nov 21, 2024

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

Signed-off-by: bigsheeper <[email protected]>
Copy link
Contributor

mergify bot commented Nov 29, 2024

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

Copy link
Contributor

mergify bot commented Dec 3, 2024

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

@bigsheeper
Copy link
Contributor Author

/unhold

Copy link
Contributor

mergify bot commented Dec 9, 2024

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

@bigsheeper
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Dec 9, 2024

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

@bigsheeper
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Dec 9, 2024

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

Copy link
Contributor

mergify bot commented Dec 12, 2024

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

Copy link
Contributor

mergify bot commented Dec 12, 2024

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

@bigsheeper
Copy link
Contributor Author

image
image

@bigsheeper
Copy link
Contributor Author

/run-cpu-e2e

@bigsheeper
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Dec 13, 2024

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

Copy link
Contributor

mergify bot commented Dec 13, 2024

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

Copy link
Contributor

mergify bot commented Dec 13, 2024

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

Copy link
Contributor

mergify bot commented Dec 17, 2024

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

Copy link
Contributor

mergify bot commented Dec 17, 2024

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

@bigsheeper
Copy link
Contributor Author

/hold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10kcp PR related to 10k collection partitions Project dco-passed DCO check passed. do-not-merge/hold kind/enhancement Issues or changes related to enhancement size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants