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: Append drop partition msg to wal #35326

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

bigsheeper
Copy link
Contributor

issue: #33285

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Aug 6, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 84.84%. Comparing base (c19fe95) to head (270a070).
Report is 5 commits behind head on master.

Files Patch % Lines
internal/rootcoord/garbage_collector.go 88.23% 2 Missing and 2 partials ⚠️
internal/util/streamingutil/checker.go 55.55% 2 Missing and 2 partials ⚠️
internal/distributed/streaming/streaming.go 50.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #35326      +/-   ##
==========================================
+ Coverage   81.54%   84.84%   +3.29%     
==========================================
  Files        1217      944     -273     
  Lines      143785   119471   -24314     
==========================================
- Hits       117256   101363   -15893     
+ Misses      22100    13684    -8416     
+ Partials     4429     4424       -5     
Files Coverage Δ
internal/rootcoord/drop_partition_task.go 100.00% <100.00%> (ø)
internal/rootcoord/root_coord.go 91.63% <100.00%> (ø)
internal/rootcoord/step.go 85.41% <100.00%> (ø)
internal/distributed/streaming/streaming.go 66.66% <50.00%> (+38.09%) ⬆️
internal/rootcoord/garbage_collector.go 96.85% <88.23%> (-1.90%) ⬇️
internal/util/streamingutil/checker.go 46.15% <55.55%> (+6.15%) ⬆️

... and 302 files with indirect coverage changes

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
var singleton *walAccesserImpl = nil
var singleton WALAccesser = nil

func SetWAL(w WALAccesser) {
Copy link
Contributor

Choose a reason for hiding this comment

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

move it into a test-build only file?

@mergify mergify bot added the ci-passed label Aug 7, 2024
@@ -19,8 +23,8 @@ func Init(c *clientv3.Client) {

// Release releases the resources of the wal accesser.
func Release() {
if singleton != nil {
singleton.Close()
if w, ok := singleton.(*walAccesserImpl); ok && w != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest adding a close method to the WALAccesser interface and invoking it directly.

@jaime0815
Copy link
Contributor

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: bigsheeper

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 72a1754 into milvus-io:master Aug 7, 2024
15 checks passed
@jaime0815
Copy link
Contributor

add create partition msg to wal in the next PR

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/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants