accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Drob (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1706) Admin Utilities Should Respect EPIPE
Date Sun, 27 Oct 2013 18:17:46 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806407#comment-13806407
] 

Mike Drob commented on ACCUMULO-1706:
-------------------------------------

I'm trying to figure out how to do this with the Shell too, since my common use cases for
automation involve the {{-e}} and {{-f}} flags. However, JLine doesn't expose the underlying
output stream to check for stream closed conditions, and this is further complicated by some
commands optionally outputting to a separate file entirely.

> Admin Utilities Should Respect EPIPE
> ------------------------------------
>
>                 Key: ACCUMULO-1706
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1706
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: 0001-ACCUMULO-1706-check-for-error-on-sysout.patch
>
>
> Many of the admin utilities can potentially print a lot of output, but don't play nice
with standard unix utilities like {{head}}. These tools should periodically check if the stdout
pipe has been closed, and terminate appropriately, instead of continuing to execute and printing
output that nobody will ever see.
> This check can be done using {{System.out.checkError()}}.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message