]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Hadoop: More work with deprecated and inappropriately-overridden functions.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 30 Jul 2009 03:11:15 +0000 (20:11 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 30 Jul 2009 21:40:10 +0000 (14:40 -0700)
src/client/hadoop/ceph/CephFileSystem.java

index 5de9a2c13a74727f65197f3a939a81791219a30f..f962bc54006edcd6bd5e983e1b07bdf972cba50e 100644 (file)
@@ -106,8 +106,9 @@ public class CephFileSystem extends FileSystem {
   @Override
     public void close() throws IOException {
     debug("close:enter");
+    super.close();//this method does stuff, make sure it's run!
     System.gc(); //to run the finalizers on CephInput/OutputStreams
-    ceph_kill_client();
+    //    ceph_kill_client();
     //for some reason this just hangs, so not doing it for now
     debug("close:exit");
   }
@@ -126,7 +127,8 @@ public class CephFileSystem extends FileSystem {
     return new FSDataOutputStream(cephOStream);
   }
 
-  public String getName() {
+  @Deprecated
+    public String getName() {
     debug("getName:enter");
     debug("getName:exit with value " + getUri().toString());
     return getUri().toString();
@@ -633,12 +635,6 @@ public class CephFileSystem extends FileSystem {
     return tmpLocalFile;
   }
 
-  @Override
-    public void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile)
-    throws IOException {
-    moveFromLocalFile(tmpLocalFile, fsOutputFile);
-  }
-
   private void debug(String statement) {
     if (debug) System.err.println(statement);
   }