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

ASF GitHub Bot commented on HDFS-17706:
---------------------------------------

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";
 />
   
   





> 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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to