[
https://issues.apache.org/jira/browse/HDFS-17706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912249#comment-17912249
]
ASF GitHub Bot commented on HDFS-17706:
---------------------------------------
kokon191 commented on code in PR #7275:
URL: https://github.com/apache/hadoop/pull/7275#discussion_r1912397236
##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockTokenWithDFS.java:
##########
@@ -582,6 +582,9 @@ protected void doTestRead(Configuration conf,
MiniDFSCluster cluster,
// restart the namenode to allow DFSClient to re-fetch tokens
cluster.restartNameNode(0);
+ // Reopen closed streams
+ in1 = fs.open(fileToRead);
+ in3 = fs.open(fileToRead);
Review Comment:
Thanks for your review. The exceptions happen in the 2
`assertFalse(checkFile())` lines right above and the streams were closed during
exception handling.
> TestBlockTokenWithDFSStriped fails after HDFS-17080
> ---------------------------------------------------
>
> Key: HDFS-17706
> URL: https://issues.apache.org/jira/browse/HDFS-17706
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Felix N
> Assignee: Felix N
> Priority: Minor
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]