-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Move ETCD client into Session #27069
Conversation
@filip-halt Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
e5de7c0
to
9ac2c9a
Compare
@filip-halt E2e jenkins job failed, comment |
@filip-halt ut workflow job failed, comment |
9ac2c9a
to
291ed48
Compare
if reuser.Client == nil { | ||
var err error | ||
reuser.Client, err = NewETCDClient() | ||
if err != nil { | ||
panic(err) | ||
} | ||
reuser.Rootpath = GetETCDRootPath() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we move client creation code into NewETCDReuser(), can we get rid of mu
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue that comes up here is that the configs don't necessarily exist yet or might need to be modified so we cant immediately try to create the client but we rather have to wait for the first call. Im debating having an etcdFactory created at datacoord creation and then pass that into the session_util. Once the rest of the factory changes are done we can swap the etcdFactory with the overarching dependency factory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next step can remove the lock by bringing in the clients to the factory.
@filip-halt, please be sure the pr should only have one commit, check https://github.com/milvus-io/milvus/blob/master/CODE_REVIEW.md for more details. |
a60592d
to
fcc95ac
Compare
@filip-halt, please be sure the pr should only have one commit, check https://github.com/milvus-io/milvus/blob/master/CODE_REVIEW.md for more details. |
@filip-halt E2e jenkins job failed, comment |
022adf2
to
2ff9ad8
Compare
Codecov Report
@@ Coverage Diff @@
## master #27069 +/- ##
==========================================
+ Coverage 81.77% 81.78% +0.01%
==========================================
Files 821 821
Lines 116389 116435 +46
==========================================
+ Hits 95175 95227 +52
+ Misses 18057 18051 -6
Partials 3157 3157
|
2ff9ad8
to
447b51a
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: filip-halt, jiaoew1991, yiwangdr 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 |
overall LGTM, need to fix the conflicts |
461f90c
to
9fdb7c9
Compare
9fdb7c9
to
e2e57e6
Compare
@filip-halt ut workflow job failed, comment |
@filip-halt, please be sure the pr should only have one commit, check https://github.com/milvus-io/milvus/blob/master/CODE_REVIEW.md for more details. |
@filip-halt E2e jenkins job failed, comment |
/run-cpu-e2e |
b2b2093
to
d9d21f5
Compare
@filip-halt E2e jenkins job failed, comment |
rerun ut |
Signed-off-by: Filip Haltmayer <[email protected]>
d9d21f5
to
c8d7108
Compare
/lgtm |
pr: [milvus-io#28971](milvus-io#27069) Signed-off-by: Filip Haltmayer <[email protected]> Signed-off-by: MrPresent-Han <[email protected]>
relate: #26694 pr: #27069 Signed-off-by: Filip Haltmayer <[email protected]> Signed-off-by: MrPresent-Han <[email protected]> Co-authored-by: Filip Haltmayer <[email protected]>
This PR is part of a multi-part effort to remove kv dependencies from being hardcoded throughout files.
In this specific pr we are removing the requirement to pass in etcd and metarootpath into session. The ability is still there so functions in cmd, backup, and tests can still function.
#26694