lihao712 commented on PR #46696: URL: https://github.com/apache/spark/pull/46696#issuecomment-2360894528
> > > will commit to the same committedTaskPath, and hadoop CommitProtocol will handle such case then data won't be duplicated. > > > > > > Will we hit file already exist exception in this case? > > commitTask will overwrite the existed committedTaskPath , won't throw file already exception. <img alt="截屏2024-05-24 10 19 10" width="1144" src="https://private-user-images.githubusercontent.com/46485123/333404010-bbc7765c-0452-4ffe-a78d-d7ac8b714320.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjY3NDk0ODYsIm5iZiI6MTcyNjc0OTE4NiwicGF0aCI6Ii80NjQ4NTEyMy8zMzM0MDQwMTAtYmJjNzc2NWMtMDQ1Mi00ZmZlLWE3OGQtZDdhYzhiNzE0MzIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTE5VDEyMzMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMzZGI0OWYwYzkxMDExMjU5NWYyZmY3ZTQ2OGJlYjYxYmM1Y2RiOWRmYjYzNzA5MDMwMjcwYjE5OTIxY2FhYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FtN18KBTR8kUhsrAVd_Uiqbr_Uka6nb0CvYakoLnqtc"> As far as I know, after Hadoop 2.7, the algorithm for checking the task commit path is version 2, and the version 1 implementation performs poorly in practice. For tasks with a large number of files, under the algorithm version 2, how can we ensure that there won't be two task commit files for the same partition existing simultaneously in the final directory? -- 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]
