kuczoram opened a new pull request, #6999: URL: https://github.com/apache/hive/pull/6999
### What changes were proposed in this pull request? Extend FSRemover.removeFiles to check if the "dead" files still exist before trying to delete them. If they don't exist, just skip them and add a warning to the log. ### Why are the changes needed? Without this check, the compaction Cleaner keeps the compaction entry in the queue forever if the underlaying files are already deleted and hive.repl.cm.enabled=true. This is not correct, since the files already deleted, the Cleaner cannot do anything with them any more. Keeping the queue entry in 'ready for cleaning' state forever will just result in dead compaction entries piling up and blocking the clean-up of some metadata. The compaction entry should be marked as cleaned and removed from the queue in this case. ### Does this PR introduce _any_ user-facing change? Yes, but it is fixing a wrong behaviour. Before this fix, the user could see compaction entries stuck in 'ready for cleaning' state in the queue if the underlaying files got deleted before the Cleaner run. After the fix, these entries will be marked as cleaned and removed from the queue. ### How was this patch tested? Added 2 new unit tests -- 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]
