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.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to