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

Add chunk format check in in_forward #611

Merged
merged 1 commit into from
Jun 12, 2015

Conversation

repeatedly
Copy link
Member

This is useful for which forwarder agent sends broken chunk to aggregators.

# TODO format error
# TODO: raise an exception if broken chunk is generated by recoverable situation
unless msg.is_a?(Array)
log.warn "incoming chunk is broken:", source: source, msg: msg
Copy link
Member

Choose a reason for hiding this comment

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

msg should be inspect -ed for various values, ex: strings with escape code or others.

Copy link
Member Author

Choose a reason for hiding this comment

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

inspect is done in log methods.

message << " #{k}=#{v.inspect}"

Copy link
Member

Choose a reason for hiding this comment

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

ah, okay.

@repeatedly
Copy link
Member Author

Are there another concern?
If not, I will merge the patch.

@tagomoris
Copy link
Member

LGTM

repeatedly added a commit that referenced this pull request Jun 12, 2015
@repeatedly repeatedly merged commit 4e844ae into master Jun 12, 2015
@repeatedly repeatedly deleted the check-message-type-in-forward branch December 3, 2015 10:33
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.

2 participants