cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5150) sstable2json doesn't check SIGPIPE
Date Mon, 29 Apr 2013 14:58:16 GMT


Jonathan Ellis commented on CASSANDRA-5150:

Do you actually see a performance difference when you redirect to a file, for instance?  That's
probably by far the most common use case.
> sstable2json doesn't check SIGPIPE
> ----------------------------------
>                 Key: CASSANDRA-5150
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.0
>            Reporter: Will Oberman
>            Priority: Minor
>              Labels: lhf
>         Attachments: trunk-5150.txt
> I believe this explains the issue better than I can:
> Basically, I expected that if I did: "sstable2json SSTABLE | other-process", and other-process
had issues and/or died then the sstable2json process would die.  It doesn't.  
> My workaround is using mkfifo FILE, and having sstable2json write to FILE, other-process
read from FILE, and a 3rd overall process make sure the other two processes are working. 
But, it would be _much_ simplier if sstable2json failed on SIGPIPE.
> I looks like the fix is to periodically check System.out.checkError() in the Java.

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:

View raw message