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

Make exception handling more robust for background updates and release v0.7.3 #117

Merged
merged 5 commits into from Jul 10, 2015

Conversation

d00rman
Copy link
Contributor

@d00rman d00rman commented Jul 3, 2015

Bug: T104581

return P.try(function() {
return P.each(res.items.reverse(), handler.handleRow.bind(handler));
}).catch(function() {
// noop here for now
Copy link
Contributor

Choose a reason for hiding this comment

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

Could add logging here, at least we would know smth happened.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Pchelolo
Copy link
Contributor

Pchelolo commented Jul 3, 2015

LGTM, except one suggestion about logging.

@d00rman
Copy link
Contributor Author

d00rman commented Jul 3, 2015

I have released v0.7.2 in order to be able to re-deploy the last version of RESTBase with only the new version of the storage module.

@d00rman d00rman changed the title Make exception handling more robust for background updates and release v0.7.2 Make exception handling more robust for background updates and release v0.7.3 Jul 7, 2015
@d00rman
Copy link
Contributor Author

d00rman commented Jul 7, 2015

v0.7.3 has been released to npm, https://gerrit.wikimedia.org/r/223297 is the deployment candidate only bumping the version

})
.catch(function(err) {
if (!options.retries) {
throw err;
return P.reject(err);
Copy link
Member

Choose a reason for hiding this comment

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

This is equivalent to throw, as it is inside a promise handler.

@gwicke
Copy link
Member

gwicke commented Jul 7, 2015

LGTM overall, just two small cases where I think a .catch is not needed / doesn't make a difference.

@d00rman
Copy link
Contributor Author

d00rman commented Jul 9, 2015

@gwicke forgot to remove these useless (and desperate) changes. Removed them.

gwicke added a commit that referenced this pull request Jul 10, 2015
Make exception handling more robust for background updates and release v0.7.3
@gwicke gwicke merged commit 4299229 into wikimedia:master Jul 10, 2015
@d00rman d00rman deleted the background-updates/exception-fix branch July 10, 2015 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants