HBASE-2072 fs.automatic.close isn't passed to FileSystem

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@894228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2009-12-28 19:16:33 +00:00
parent f4406121af
commit 3fb9ac02b8
2 changed files with 2 additions and 1 deletions

View File

@ -140,6 +140,7 @@ Release 0.21.0 - Unreleased
HBASE-2065 Cannot disable a table if any of its region is opening HBASE-2065 Cannot disable a table if any of its region is opening
at the same time at the same time
HBASE-2026 NPE in StoreScanner on compaction HBASE-2026 NPE in StoreScanner on compaction
HBASE-2072 fs.automatic.close isn't passed to FileSystem
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -706,13 +706,13 @@ public class HRegionServer implements HConstants, HRegionInterface,
// accessors will be going against wrong filesystem (unless all is set // accessors will be going against wrong filesystem (unless all is set
// to defaults). // to defaults).
this.conf.set("fs.defaultFS", this.conf.get("hbase.rootdir")); this.conf.set("fs.defaultFS", this.conf.get("hbase.rootdir"));
this.conf.setBoolean("fs.automatic.close", false);
this.fs = FileSystem.get(this.conf); this.fs = FileSystem.get(this.conf);
// Register shutdown hook for HRegionServer, runs an orderly shutdown // Register shutdown hook for HRegionServer, runs an orderly shutdown
// when a kill signal is recieved. Shuts down hdfs too if its supposed. // when a kill signal is recieved. Shuts down hdfs too if its supposed.
Runtime.getRuntime().addShutdownHook(new ShutdownThread(this, Runtime.getRuntime().addShutdownHook(new ShutdownThread(this,
Thread.currentThread(), this.shutdownHDFS)); Thread.currentThread(), this.shutdownHDFS));
this.conf.setBoolean("fs.automatic.close", false);
this.rootDir = new Path(this.conf.get(HConstants.HBASE_DIR)); this.rootDir = new Path(this.conf.get(HConstants.HBASE_DIR));
this.hlog = setupHLog(); this.hlog = setupHLog();