xinglin commented on PR #7425: URL: https://github.com/apache/hadoop/pull/7425#issuecomment-2689333241
Hi @robreeves, Can we use the OVERRIDE option with rename to achieve the same effect? We don't have to check for existence before we do the rename. Just pass OVERRIDE to rename and we will override if destination already exists. https://github.com/apache/hadoop/blob/b05c0ce97247551b33ab33422cbe8d5358c055a0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java#L1002 -- 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]
