[
https://issues.apache.org/jira/browse/FLUME-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471393#comment-13471393
]
Hari Shreedharan commented on FLUME-1622:
-----------------------------------------
Denny,
As of now there is no rule or verification that happens if the event has a body
or not. So we cannot assume that it has. Also, it is possible that there are
users who would simply want to transfer event data in headers - say, just the
timestamps at which some "event" happened - in which case they may not need a
body at all. Anyway we cannot assume that the body exists.
Also note that we cannot make a new requirement that each event has a body,
unless we make the requirement in the next major release, v2.0. We have to make
sure existing client code works fine between point/minor releases. So for now,
we *need* to support the case where there is a zero-size/non-existent body.
> MemoryChannel throws NPE if the event has no body
> -------------------------------------------------
>
> Key: FLUME-1622
> URL: https://issues.apache.org/jira/browse/FLUME-1622
> Project: Flume
> Issue Type: Bug
> Components: Channel
> Affects Versions: v1.3.0
> Reporter: Hari Shreedharan
> Assignee: Hari Shreedharan
> Fix For: v1.3.0
>
> Attachments: FLUME-1622.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira