-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix(cvr, delete): ensure cvr gets deleted during reconcile #1263
fix(cvr, delete): ensure cvr gets deleted during reconcile #1263
Conversation
fdaf96a
to
5d1a3d5
Compare
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.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
5d1a3d5
to
0ff8819
Compare
string(common.StatusSynced), | ||
) | ||
|
||
} else if IsDestroyEvent(newCVR) { |
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.
is it good if we reverse this and the above 'if', i.e., how about below order:
if IsDestroyEvent(newCVR) {
} else if newCVR.ResourceVersion == oldCVR.ResourceVersion{
}else {
}
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.
what is the motivation for above? @vishnuitta
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.
Understood. Done
0ff8819
to
d9cf911
Compare
oldCVR := old.(*apis.CStorVolumeReplica) | ||
|
||
glog.V(4).Infof( | ||
"received informer update event for cvr {%s}", |
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.
can we log this after IsRightCStorVolumeReplica
check?
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.
ok
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.
done
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.
👍
This commit has following changes: - remove the check where reconcile was avoided in case of previous delete failures - reduce instances of log flooding - improve log messages - modify & indent code to make it more readable Related PR(s): - openebs-archive#1256 This commit tries to fix the symptom 2 talked in PR 1256 Signed-off-by: AmitKumarDas <[email protected]>
d9cf911
to
01aa52e
Compare
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.
changes are good
…rchive#1263) This commit has following changes: - remove the check where reconcile was avoided in case of previous delete failures - reduce instances of log flooding - improve log messages - modify & indent code to make it more readable Related PR(s): - openebs-archive#1256 This commit tries to fix the symptom 2 talked in PR 1256 Signed-off-by: AmitKumarDas <[email protected]>
This commit has following changes: - remove the check where reconcile was avoided in case of previous delete failures - reduce instances of log flooding - improve log messages - modify & indent code to make it more readable Related PR(s): - #1256 This commit tries to fix the symptom 2 talked in PR 1256 Signed-off-by: AmitKumarDas <[email protected]>
This commit has following changes:
Related PR(s):
This commit tries to fix the symptom 2 talked in PR 1256
Signed-off-by: AmitKumarDas [email protected]
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Checklist:
documentation
tagbreaking-changes
tagrequires-upgrade
tag