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

out_forward raises ZeroDivisionError when no <server> is available #707

Merged
merged 2 commits into from
Nov 24, 2015

Conversation

frsyuki
Copy link
Member

@frsyuki frsyuki commented Nov 20, 2015

When no is set to out_forward plugin,
Fluent::ForwardOutput#rebuild_weight_array raises ZeroDivisionError
at coe = (regular_nodes.size * 6) / weight_array.size. This change
gives more useful error message to uses instead of unfriendly
ZeroDivisionError message.

When no <server> is set to out_forward plugin,
`Fluent::ForwardOutput#rebuild_weight_array` raises ZeroDivisionError
at `coe = (regular_nodes.size * 6) / weight_array.size`. This change
gives more useful error message to uses instead of unfriendly
ZeroDivisionError message.
@repeatedly
Copy link
Member

Could you add a test for this change?

@sonots
Copy link
Member

sonots commented Nov 23, 2015

Added test

@repeatedly
Copy link
Member

@sonots good 👍

repeatedly added a commit that referenced this pull request Nov 24, 2015
out_forward raises ZeroDivisionError when no <server> is available
@repeatedly repeatedly merged commit a4c1b31 into master Nov 24, 2015
repeatedly added a commit that referenced this pull request Dec 8, 2015
out_forward raises ZeroDivisionError when no <server> is available
@tagomoris tagomoris deleted the forward-reject-empty branch June 2, 2016 09:19
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