[
https://issues.apache.org/jira/browse/HDFS-16253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17424153#comment-17424153
]
Steve Loughran commented on HDFS-16253:
---------------------------------------
we pass through FSDataInputStream to the wrapped stream, so add your own and
it's easy to log.
* recommend printing closed/open state
* and any stats you already collect
test wise: call toString() on open & closed streams & verify no NPEs, you can
verify the output by reading the log and/or in AssertJ
> Add a toString implementation to DFSInputStream
> -----------------------------------------------
>
> Key: HDFS-16253
> URL: https://issues.apache.org/jira/browse/HDFS-16253
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Priority: Major
>
> It would help debugging if there was a useful toString on DFSInputStream.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]