hfutatzhanghb commented on code in PR #7275:
URL: https://github.com/apache/hadoop/pull/7275#discussion_r1912427822
##########
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:
@Hexiaoqiao Sir, inputStream is closed here:
https://github.com/harris233/hadoop/blob/e73f432f56ca8c209cff0a7f3077522b5e76e0d7/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/StripeReader.java#L356C7-L356C28
This code was introduced by
[HDFS-17080](https://issues.apache.org/jira/browse/HDFS-17080)
<img width="1098" alt="image"
src="https://github.com/user-attachments/assets/42681fda-1770-49ae-b519-76137c6478bb"
/>
<img width="1151" alt="image"
src="https://github.com/user-attachments/assets/9f1a8df5-609e-4648-acc3-7e66222d6816"
/>
--
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]