tomscut commented on pull request #3313:
URL: https://github.com/apache/hadoop/pull/3313#issuecomment-903476259


   > @tomscut Hi, does this WARN log be printed when only writing EC files ? 
This WARN logs also appeared in our cluster without writting any files, but not 
as many as you said.
   > I found that the block in the WARN log belongs to the file written a long 
time ago. So, I have some guesses:
   > 
   > * is there a daemon thread calling this method?
   > * or other conditions trigger this method?
   > 
   > Here is our 3-hour running log.
   > 
![image](https://user-images.githubusercontent.com/18388154/130396631-14db5ce7-0e35-442d-b0d8-f38486ab5496.png)
   
   Thanks @whbing for your comments. I found those logs were printed after 
completeFile. Triggered by FSDirWriteFileOp#completeFileInternal().
   
   ```
     private static boolean completeFileInternal(
         FSNamesystem fsn, INodesInPath iip,
         String holder, Block last, long fileId)
         throws IOException {
       (...)
       fsn.finalizeINodeFileUnderConstruction(src, pendingFile,
           Snapshot.CURRENT_STATE_ID, true);
       (...)
       return true;
     }
   ```
   
   
![image](https://user-images.githubusercontent.com/55134131/130398711-1fa0d1dc-8c46-4f8f-b7f1-2459dca3c5c4.png)
   
   


-- 
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