Skip to content

Commit

Permalink
Fix LOG.warn without context (#6924)
Browse files Browse the repository at this point in the history
  • Loading branch information
apc999 committed Mar 7, 2018
1 parent b3f7e2c commit 049041a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -1504,7 +1504,7 @@ private List<Inode<?>> deleteInternal(LockedInodePath inodePath, boolean replaye
failedToDelete = !ufsDeleter.delete(alluxioUriToDel, delInode);
}
} catch (InvalidPathException e) {
LOG.warn(e.getMessage());
LOG.warn("Failed to delete path from UFS: {}", e.getMessage());
}
}
if (!failedToDelete) {
Expand Down
Expand Up @@ -102,16 +102,17 @@ private void reserveSpace() {
mBlockWorker.freeSpace(Sessions.MIGRATE_DATA_SESSION_ID, reservedSpace, tierAlias);
} catch (WorkerOutOfSpaceException | BlockDoesNotExistException
| BlockAlreadyExistsException | InvalidWorkerStateException | IOException e) {
LOG.warn("SpaceReserver failed to free tier {} to {} bytes used", tierAlias,
reservedSpace, e.getMessage());
LOG.warn("SpaceReserver failed to free tier {} to {} bytes used for high watermarks: "
+ "{}", tierAlias, reservedSpace, e.getMessage());
}
}
} else {
try {
mBlockWorker.freeSpace(Sessions.MIGRATE_DATA_SESSION_ID, reservedSpace, tierAlias);
} catch (WorkerOutOfSpaceException | BlockDoesNotExistException
| BlockAlreadyExistsException | InvalidWorkerStateException | IOException e) {
LOG.warn(e.getMessage());
LOG.warn("SpaceReserver failed to free tier {} to {} bytes used: {}", tierAlias,
reservedSpace, e.getMessage());
}
}
}
Expand Down

0 comments on commit 049041a

Please sign in to comment.