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: [cherry-pick] Periodically synchronize segments to datanode watcher (#33420) #34186

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

@sre-ci-robot sre-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines. label Jun 26, 2024
Copy link
Contributor

mergify bot commented Jun 26, 2024

@xiaocai2333 Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added needs-dco DCO is missing in this pull request. kind/enhancement Issues or changes related to enhancement labels Jun 26, 2024
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Jun 26, 2024
Key: "dataCoord.sync.interval",
Version: "2.4.3",
Doc: "The time interval for regularly syncing segments",
DefaultValue: "600", // 10 * 60 seconds
Copy link
Contributor

Choose a reason for hiding this comment

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

300?

newSegments := make([]*datapb.SyncSegmentInfo, 0, len(missingSegments))
futures := make([]*conc.Future[any], 0, len(missingSegments))

for _, segID := range missingSegments {
Copy link
Contributor

Choose a reason for hiding this comment

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

The timeout for the SyncSegments RPC is 10 seconds. If there are many segments, it may time out due to loading
many stats log.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will fix it in next pr, master also need it.

…s-io#33420)

issue: milvus-io#32809

---------

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

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

Project coverage is 81.99%. Comparing base (3cf526e) to head (1d88fa3).
Report is 10 commits behind head on 2.4.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.4   #34186      +/-   ##
==========================================
+ Coverage   81.96%   81.99%   +0.03%     
==========================================
  Files        1013     1013              
  Lines      130223   130382     +159     
==========================================
+ Hits       106737   106907     +170     
+ Misses      19494    19487       -7     
+ Partials     3992     3988       -4     
Files Coverage Δ
internal/datacoord/compaction.go 90.95% <100.00%> (+1.12%) ⬆️
internal/datacoord/meta.go 93.49% <100.00%> (+0.02%) ⬆️
internal/datacoord/server.go 72.05% <100.00%> (-0.03%) ⬇️
internal/datacoord/sync_segments_scheduler.go 100.00% <100.00%> (ø)
internal/datanode/data_node.go 82.20% <ø> (ø)
internal/datanode/metacache/meta_cache.go 100.00% <100.00%> (ø)
pkg/util/paramtable/component_param.go 98.37% <100.00%> (+<0.01%) ⬆️
internal/datanode/services.go 88.08% <74.41%> (-1.00%) ⬇️

... and 33 files with indirect coverage changes

@czs007
Copy link
Contributor

czs007 commented Jun 27, 2024

/approve
/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: czs007, xiaocai2333

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

@sre-ci-robot sre-ci-robot merged commit 1c6e850 into milvus-io:2.4 Jun 27, 2024
12 checks passed
@xiaocai2333 xiaocai2333 deleted the pick_sync_segment branch July 9, 2024 07:18
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/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants