HDFS-5407. Fix typos in DFSClientCache. Contributed by Haohui Mai
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1544362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a379a7bbb9
commit
82d0e820d0
|
@ -99,7 +99,7 @@ class DFSClientCache {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.clientCache = CacheBuilder.newBuilder()
|
this.clientCache = CacheBuilder.newBuilder()
|
||||||
.maximumSize(clientCache)
|
.maximumSize(clientCache)
|
||||||
.removalListener(clientRemovealListener())
|
.removalListener(clientRemovalListener())
|
||||||
.build(clientLoader());
|
.build(clientLoader());
|
||||||
|
|
||||||
this.inputstreamCache = CacheBuilder.newBuilder()
|
this.inputstreamCache = CacheBuilder.newBuilder()
|
||||||
|
@ -127,7 +127,7 @@ class DFSClientCache {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private RemovalListener<String, DFSClient> clientRemovealListener() {
|
private RemovalListener<String, DFSClient> clientRemovalListener() {
|
||||||
return new RemovalListener<String, DFSClient>() {
|
return new RemovalListener<String, DFSClient>() {
|
||||||
@Override
|
@Override
|
||||||
public void onRemoval(RemovalNotification<String, DFSClient> notification) {
|
public void onRemoval(RemovalNotification<String, DFSClient> notification) {
|
||||||
|
|
|
@ -716,6 +716,8 @@ Release 2.2.1 - UNRELEASED
|
||||||
|
|
||||||
HDFS-5288. Close idle connections in portmap (Haohui Mai via brandonli)
|
HDFS-5288. Close idle connections in portmap (Haohui Mai via brandonli)
|
||||||
|
|
||||||
|
HDFS-5407. Fix typos in DFSClientCache (Haohui Mai via brandonli)
|
||||||
|
|
||||||
Release 2.2.0 - 2013-10-13
|
Release 2.2.0 - 2013-10-13
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
Loading…
Reference in New Issue