-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(auto-salvage): v2 support #222
base: main
Are you sure you want to change the base?
Conversation
4acf3c9
to
0d205b4
Compare
This pull request is now in conflict. Could you fix it @c3y1huang? 🙏 |
b411222
to
80dd23b
Compare
go.mod
Outdated
replace github.com/longhorn/types => github.com/c3y1huang/types v0.0.0-20240927004343-3ad221f0cbfc | ||
|
||
replace github.com/longhorn/go-common-libs => github.com/c3y1huang/go-common-libs v0.0.0-20240927004544-ee33d7bb917c |
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.
TODO: update when dependency PRs are merged.
95e1ee9
to
c653fcf
Compare
longhorn/longhorn-8430 Signed-off-by: Chin-Ya Huang <[email protected]>
longhorn/longhorn-8430 Signed-off-by: Chin-Ya Huang <[email protected]>
c653fcf
to
743f3f2
Compare
longhorn/longhorn-8430 Signed-off-by: Chin-Ya Huang <[email protected]>
longhorn/longhorn-8430 Signed-off-by: Chin-Ya Huang <[email protected]>
longhorn/longhorn-8430 Signed-off-by: Chin-Ya Huang <[email protected]>
743f3f2
to
1ad077c
Compare
} | ||
|
||
for replicaName := range e.ReplicaAddressMap { | ||
if _, exist := salvageCandidates[replicaName]; !exist { |
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.
How can replicaName
not exist in salvageCandidates
? This map has been populated by volumeHeadSizeToReplicaNames
, which has been populated by ReplicaAddressMap
.
This pull request is now in conflict. Could you fix it @c3y1huang? 🙏 |
@@ -206,7 +207,15 @@ func (e *Engine) Create(spdkClient *spdkclient.Client, replicaAddressMap map[str | |||
e.ReplicaAddressMap = replicaAddressMap | |||
e.log = e.log.WithField("replicaAddressMap", replicaAddressMap) | |||
|
|||
e.checkAndUpdateInfoFromReplicaNoLock() | |||
if salvageRequested { |
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.
Does the engine need to try to connect all replicas before a salvage?
If NO, then the mode check inside updateInfoToFilterReplicaSalvageCandidates
makes no sense.
Which issue(s) this PR fixes:
Issue longhorn/longhorn#8430
What this PR does / why we need it:
Skip creating lvol bdev for a new replica instance if it exists.
Special notes for your reviewer:
None
Additional documentation or context
None