hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rang...@apache.org
Subject svn commit: r648772 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/ClientProtocol.java src/java/org/apache/hadoop/dfs/DFSClient.java src/java/org/apache/hadoop/dfs/FSNamesystem.java src/java/org/apache/hadoop/dfs/NameNode.java
Date Wed, 16 Apr 2008 18:06:50 GMT
Author: rangadi
Date: Wed Apr 16 11:06:46 2008
New Revision: 648772

URL: http://svn.apache.org/viewvc?rev=648772&view=rev
Log:
HADOOP-3160. Remove deprecated exists() from ClientProtocol and FSNamesystem (Lohit Vjayarenu
via rangadi)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/ClientProtocol.java
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/NameNode.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=648772&r1=648771&r2=648772&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Apr 16 11:06:46 2008
@@ -21,6 +21,9 @@
     HADOOP-3130. Make the connect timeout smaller for getFile.
     (Amar Ramesh Kamat via ddas)
 
+    HADOOP-3160. Remove deprecated exists() from ClientProtocol and 
+    FSNamesystem (Lohit Vjayarenu via rangadi)
+
   OPTIMIZATIONS
 
   BUG FIXES

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/ClientProtocol.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/ClientProtocol.java?rev=648772&r1=648771&r2=648772&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/ClientProtocol.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/ClientProtocol.java Wed Apr 16 11:06:46
2008
@@ -232,12 +232,6 @@
    */
   public boolean delete(String src, boolean recursive) throws IOException;
   
-  /** @deprecated Use getFileInfo() instead
-   * Check whether the given file exists.
-   */
-  @Deprecated
-  public boolean exists(String src) throws IOException;
-
   /**
    * Create a directory (or hierarchy of directories) with the given
    * name and permission.

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java?rev=648772&r1=648771&r2=648772&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java Wed Apr 16 11:06:46 2008
@@ -130,7 +130,6 @@
     methodNameToPolicyMap.put("abandonBlock", methodPolicy);
     methodNameToPolicyMap.put("abandonFileInProgress", methodPolicy);
     methodNameToPolicyMap.put("reportBadBlocks", methodPolicy);
-    methodNameToPolicyMap.put("exists", methodPolicy);
     methodNameToPolicyMap.put("isDir", methodPolicy);
     methodNameToPolicyMap.put("getListing", methodPolicy);
     methodNameToPolicyMap.put("getHints", methodPolicy);

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?rev=648772&r1=648771&r2=648772&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Wed Apr 16 11:06:46
2008
@@ -1543,14 +1543,6 @@
     return true;
   }
 
-  /** @deprecated Use getFileInfo(String) instead
-   * Return whether the given filename exists
-   */
-  @Deprecated
-  public boolean exists(String src) throws IOException {
-      return getFileInfo(src) != null;
-  }
-
   /** Get the file info for a specific file.
    * @param src The string representation of the path to the file
    * @throws IOException if permission to access file is denied by the system 

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/NameNode.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/NameNode.java?rev=648772&r1=648771&r2=648772&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/NameNode.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/NameNode.java Wed Apr 16 11:06:46 2008
@@ -382,12 +382,6 @@
     stateChangeLog.debug("*DIR* Namenode.delete:  " + src);
     return namesystem.delete(src, recursive);
   }
-  /**@deprecated Use getFileInfo(String) instead
-   */
-  @Deprecated
-  public boolean exists(String src) throws IOException {
-    return getFileInfo(src) != null;
-  }
 
   /**
    * Check path length does not exceed maximum.  Returns true if



Mime
View raw message