hfutatzhanghb opened a new pull request, #7276:
URL: https://github.com/apache/hadoop/pull/7276

   ### Description of PR
   Cause is race condition when multiple instances of 
FileIoProvider#mkdirsWithExistsCheck are called for the same directory on 
different DIR locks.
   
   There can be two ways to solve this problem:
   1. use DIR lock align with datanode two-level layout, like subdir0/subdir0
   2. modify the logic of mkdirsWithExistsCheck like below:
   
![image](https://github.com/user-attachments/assets/23682015-9059-4a40-aba5-b19e9f491527)
   


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