Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,17 @@ boolean renewLease() throws IOException {
+ (HdfsConstants.LEASE_HARDLIMIT_PERIOD/1000) + " seconds.) "
+ "Closing all files being written ...", e);
closeAllFilesBeingWritten(true);
} else if (e instanceof RemoteException) {
IOException ioe = ((RemoteException)e).unwrapRemoteException();
if (ioe instanceof InvalidToken) {
// no point in retrying this ever again, the token is not valid anymore
LOG.warn("Token invalid, unable to renew lease for client " + clientName + ". "
+ "Closing all files being written ...", e);
closeAllFilesBeingWritten(true);
} else {
// Let the lease renewer handle it and retry.
throw e;
}
} else {
// Let the lease renewer handle it and retry.
throw e;
Expand Down