in src/main/java/com/netflix/bdp/s3mper/listing/ConsistentListingAspect.java [576:594]
private void metadataCleanup(Configuration conf, FileSystem fs, RenameInfo info) throws Exception {
try {
renameCleanup(fs, new FileInfo(info.srcPath, false, !info.srcIsFile));
} catch (TimeoutException t) {
log.error("Timeout occurred rename cleanup metastore path: " + info.srcPath, t);
alertDispatcher.timeout("metastoreRenameCleanup", Collections.singletonList(info.srcPath));
if(failOnTimeout) {
throw t;
}
} catch (Exception e) {
log.error("Error executing rename cleanup for paths from metastore: " + info.srcPath, e);
if(shouldFail(conf)) {
throw e;
}
}
}