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

V3 Release #60

Merged
merged 11 commits into from
May 9, 2016
Merged

V3 Release #60

merged 11 commits into from
May 9, 2016

Conversation

jquatier
Copy link
Owner

@jquatier jquatier commented May 6, 2016

This release has a couple bugfixes, some improvements to usability, and some new features. Unit tests have also been added and improved.

Changes:

  • Added better exception handling around malformed YAML configuration files.
  • Added support for the following events: started, registered, deregistered, heartbeat, and registryUpdated.
  • Improved the stability of the client when it encounters downstream DNS errors, as a side-effect the callback for fetchRegistries() now returns errors when they are encountered.
  • Populate registry cache with instances that have a status of UP, filterUpInstances can be set to false to disable. See #48 for original issue.

The main benefit of this release is the improved exception handling around DNS errors in AWS environments. Currently, if a DNS query were to fail (which is likely in a network outage) the client would throw an uncaught exception. The instance would most likely not recover when the network was available again (heartbeats stop). In V3, these errors are properly caught so that heartbeats continue to execute on interval. This scenario was simulated today and V3 resolves the issue completely.

@jquatier jquatier changed the title V3 V3 Release May 6, 2016
@coveralls
Copy link

coveralls commented May 6, 2016

Coverage Status

Coverage increased (+2.4%) to 94.224% when pulling ff5233c on v3 into 84ac4ec on master.

@awolden
Copy link
Collaborator

awolden commented May 9, 2016

Everything looks great. Good Job! 💯

@JasonVeselka
Copy link

JasonVeselka commented May 9, 2016

Yep totally agree. Great Work! 🎱

@jquatier jquatier merged commit b95da7a into master May 9, 2016
@jquatier jquatier deleted the v3 branch May 9, 2016 22:27
@@ -18,19 +19,32 @@ function noop() {}
for reporting instance health.
*/

function fileExists(file) {
try {
return fs.statSync(file);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would !! this to ensure consistent return types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants