HDFS-5800. Fix a typo in DFSClient.renewLease(). Contributed by Kousuke Saruta

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1559701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2014-01-20 14:08:00 +00:00
parent 4b0ae92c19
commit 602f71a8da
2 changed files with 4 additions and 1 deletions

View File

@ -775,6 +775,9 @@ Release 2.4.0 - UNRELEASED
HDFS-5777. Update LayoutVersion for the new editlog op OP_ADD_BLOCK. (jing9) HDFS-5777. Update LayoutVersion for the new editlog op OP_ADD_BLOCK. (jing9)
HDFS-5800. Fix a typo in DFSClient.renewLease(). (Kousuke Saruta
via szetszwo)
BREAKDOWN OF HDFS-2832 SUBTASKS AND RELATED JIRAS BREAKDOWN OF HDFS-2832 SUBTASKS AND RELATED JIRAS
HDFS-4985. Add storage type to the protocol and expose it in block report HDFS-4985. Add storage type to the protocol and expose it in block report

View File

@ -770,7 +770,7 @@ public class DFSClient implements java.io.Closeable {
final long elapsed = Time.now() - getLastLeaseRenewal(); final long elapsed = Time.now() - getLastLeaseRenewal();
if (elapsed > HdfsConstants.LEASE_HARDLIMIT_PERIOD) { if (elapsed > HdfsConstants.LEASE_HARDLIMIT_PERIOD) {
LOG.warn("Failed to renew lease for " + clientName + " for " LOG.warn("Failed to renew lease for " + clientName + " for "
+ (elapsed/1000) + " seconds (>= soft-limit =" + (elapsed/1000) + " seconds (>= hard-limit ="
+ (HdfsConstants.LEASE_HARDLIMIT_PERIOD/1000) + " seconds.) " + (HdfsConstants.LEASE_HARDLIMIT_PERIOD/1000) + " seconds.) "
+ "Closing all files being written ...", e); + "Closing all files being written ...", e);
closeAllFilesBeingWritten(true); closeAllFilesBeingWritten(true);