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

ft: ZENKO-147 Make CRR retry configurable #285

Merged
merged 1 commit into from
May 25, 2018

Conversation

bennettbuchanan
Copy link

Allow a configurable value to disable tracking CRR failures. 🚀

@bennettbuchanan bennettbuchanan force-pushed the ft/ZENKO-147/configurableFailedCRRTracking branch from 9e380dc to 42c8748 Compare May 9, 2018 20:32
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@@ -50,6 +50,7 @@ const joiSchema = {
},
topic: joi.string().required(),
replicationStatusTopic: joi.string().required(),
trackReplicationFailures: joi.boolean().default(true),
Copy link
Author

Choose a reason for hiding this comment

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

What do you all think of trackReplicationFailures? Alternatives I considered:

  • trackCRRFailures
  • enableReplicationRetry

Copy link
Contributor

Choose a reason for hiding this comment

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

I vote for trackCRRFailures

Copy link
Collaborator

Choose a reason for hiding this comment

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

monitorReplicationFailures?

Copy link
Contributor

Choose a reason for hiding this comment

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

As an external parameter name I would prefer sticking to the service semantic, i.e. "replication" service, so trackReplicationFailures. Internally (function names etc.) we also have some names with CRR in it.

Copy link
Contributor

Choose a reason for hiding this comment

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

monitorReplicationFailures is good for me too, not being an english native speaker I leave the choice to others 🤣

Copy link
Author

Choose a reason for hiding this comment

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

Okay, it seems like we all agree on monitorReplicationFailures. 💃We have a winner.

Copy link
Author

Choose a reason for hiding this comment

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

@jonathan-gramain BTW, your English is awesome! I'm always impressed with your doc writing. 😄

@@ -192,6 +192,9 @@ class ReplicationStatusProcessor {
return this.taskScheduler.push({ task, entry: sourceEntry },
sourceEntry.getCanonicalKey(), done);
});
} else if (task) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The else is not necessary (no big deal but I have memories of the linter complaining about this).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I vote for removing unnecessary else statements as well.

Copy link
Author

@bennettbuchanan bennettbuchanan May 10, 2018

Choose a reason for hiding this comment

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

Sounds good to me. 😄Done!

JianqinWang
JianqinWang previously approved these changes May 9, 2018
@bennettbuchanan bennettbuchanan force-pushed the ft/ZENKO-147/configurableFailedCRRTracking branch from 42c8748 to 88e53b9 Compare May 10, 2018 16:05
@ironman-machine ironman-machine dismissed stale reviews from jonathan-gramain and JianqinWang May 10, 2018 16:05

Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

JianqinWang
JianqinWang previously approved these changes May 10, 2018
rahulreddy
rahulreddy previously approved these changes May 25, 2018
Copy link
Collaborator

@rahulreddy rahulreddy left a comment

Choose a reason for hiding this comment

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

@bennettbuchanan Please make this configurable in Zenko chart as well.

@bennettbuchanan bennettbuchanan force-pushed the ft/ZENKO-147/configurableFailedCRRTracking branch from 88e53b9 to 45c9d41 Compare May 25, 2018 23:10
@ironman-machine ironman-machine dismissed stale reviews from JianqinWang, jonathan-gramain, and rahulreddy May 25, 2018 23:10

Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@jonathan-gramain jonathan-gramain merged commit 92eb9ac into z/1.0 May 25, 2018
@jonathan-gramain jonathan-gramain deleted the ft/ZENKO-147/configurableFailedCRRTracking branch May 25, 2018 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants