chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ari Rabkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CHUKWA-407) In socketTeeWriter PatternSyntaxException exceptions aren't sent to the client properly
Date Mon, 26 Oct 2009 23:53:59 GMT

    [ https://issues.apache.org/jira/browse/CHUKWA-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770294#action_12770294
] 

Ari Rabkin commented on CHUKWA-407:
-----------------------------------

Yep.  That's a bug, and that's a sensible fix.  Can you attach an actual patch, generated
with svn diff in the root Chukwa directory?


> In socketTeeWriter PatternSyntaxException exceptions aren't sent to the client properly
> ---------------------------------------------------------------------------------------
>
>                 Key: CHUKWA-407
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-407
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>          Components: data collection
>    Affects Versions: 0.3.0
>            Reporter: thushara wijeratna
>            Priority: Minor
>
> inside SockteTeeWriter.Tee.setup(), the output steam should be created
> early on in order for parser exceptions to be properly sent to the
> client.
> the patch is to simply move the creation of the output stream up like this:
>         in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
>         out = new DataOutputStream(sock.getOutputStream());
> ....
>         rules = new Filter(cmdAfterSpace);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message