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

fix(cvr, delete): ensure cvr gets deleted during reconcile #1263

Conversation

AmitKumarDas
Copy link

@AmitKumarDas AmitKumarDas commented Jun 7, 2019

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):

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:

  • Fixes #
  • Labelled this PR & related issue with documentation tag
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests

Copy link

@ghost ghost left a 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).

@AmitKumarDas AmitKumarDas force-pushed the cvr-del-finalizer-take-2-part-2 branch from 5d1a3d5 to 0ff8819 Compare June 7, 2019 09:29
string(common.StatusSynced),
)

} else if IsDestroyEvent(newCVR) {
Copy link
Contributor

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 {
}

Copy link
Author

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

Copy link
Author

Choose a reason for hiding this comment

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

Understood. Done

@AmitKumarDas AmitKumarDas force-pushed the cvr-del-finalizer-take-2-part-2 branch from 0ff8819 to d9cf911 Compare June 7, 2019 12:31
oldCVR := old.(*apis.CStorVolumeReplica)

glog.V(4).Infof(
"received informer update event for cvr {%s}",
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

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

ok

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

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]>
@AmitKumarDas AmitKumarDas force-pushed the cvr-del-finalizer-take-2-part-2 branch from d9cf911 to 01aa52e Compare June 7, 2019 12:56
Copy link
Contributor

@vishnuitta vishnuitta left a comment

Choose a reason for hiding this comment

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

changes are good

@vishnuitta vishnuitta merged commit 3a37d8e into openebs-archive:master Jun 7, 2019
prateekpandey14 pushed a commit to prateekpandey14/maya that referenced this pull request Jun 19, 2019
…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]>
kmova pushed a commit that referenced this pull request Jun 19, 2019
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants