hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r1103957 - in /hadoop/hdfs/trunk: CHANGES.txt src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java
Date Tue, 17 May 2011 00:05:08 GMT
Author: szetszwo
Date: Tue May 17 00:05:07 2011
New Revision: 1103957

URL: http://svn.apache.org/viewvc?rev=1103957&view=rev
Log:
HDFS-1945. emoved deprecated fields in DataTransferProtocol.

Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1103957&r1=1103956&r2=1103957&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Tue May 17 00:05:07 2011
@@ -418,6 +418,8 @@ Trunk (unreleased changes)
 
     HDFS-1946. HDFS part of HADOOP-7291. (eli)
 
+    HDFS-1945. emoved deprecated fields in DataTransferProtocol.  (szetszwo)
+
   OPTIMIZATIONS
 
     HDFS-1458. Improve checkpoint performance by avoiding unnecessary image

Modified: hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java?rev=1103957&r1=1103956&r2=1103957&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java (original)
+++ hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/protocol/DataTransferProtocol.java Tue
May 17 00:05:07 2011
@@ -51,11 +51,10 @@ public interface DataTransferProtocol {
    * when protocol changes. It is not very obvious. 
    */
   /*
-   * Version 23:
-   *    Changed the protocol methods to use ExtendedBlock instead
-   *    of Block.
+   * Version 24:
+   *    Remove deprecated fields.
    */
-  public static final int DATA_TRANSFER_VERSION = 23;
+  public static final int DATA_TRANSFER_VERSION = 24;
 
   /** Operation */
   public enum Op {
@@ -185,49 +184,6 @@ public interface DataTransferProtocol {
     }
   }    
 
-  /** @deprecated Deprecated at 0.21.  Use Op.WRITE_BLOCK instead. */
-  @Deprecated
-  public static final byte OP_WRITE_BLOCK = Op.WRITE_BLOCK.code;
-  /** @deprecated Deprecated at 0.21.  Use Op.READ_BLOCK instead. */
-  @Deprecated
-  public static final byte OP_READ_BLOCK = Op.READ_BLOCK.code;
-  /** @deprecated As of version 15, OP_READ_METADATA is no longer supported. */
-  @Deprecated
-  public static final byte OP_READ_METADATA = Op.READ_METADATA.code;
-  /** @deprecated Deprecated at 0.21.  Use Op.REPLACE_BLOCK instead. */
-  @Deprecated
-  public static final byte OP_REPLACE_BLOCK = Op.REPLACE_BLOCK.code;
-  /** @deprecated Deprecated at 0.21.  Use Op.COPY_BLOCK instead. */
-  @Deprecated
-  public static final byte OP_COPY_BLOCK = Op.COPY_BLOCK.code;
-  /** @deprecated Deprecated at 0.21.  Use Op.BLOCK_CHECKSUM instead. */
-  @Deprecated
-  public static final byte OP_BLOCK_CHECKSUM = Op.BLOCK_CHECKSUM.code;
-
-
-  /** @deprecated Deprecated at 0.21.  Use Status.SUCCESS instead. */
-  @Deprecated
-  public static final int OP_STATUS_SUCCESS = Status.SUCCESS.code;  
-  /** @deprecated Deprecated at 0.21.  Use Status.ERROR instead. */
-  @Deprecated
-  public static final int OP_STATUS_ERROR = Status.ERROR.code;
-  /** @deprecated Deprecated at 0.21.  Use Status.ERROR_CHECKSUM instead. */
-  @Deprecated
-  public static final int OP_STATUS_ERROR_CHECKSUM = Status.ERROR_CHECKSUM.code;
-  /** @deprecated Deprecated at 0.21.  Use Status.ERROR_INVALID instead. */
-  @Deprecated
-  public static final int OP_STATUS_ERROR_INVALID = Status.ERROR_INVALID.code;
-  /** @deprecated Deprecated at 0.21.  Use Status.ERROR_EXISTS instead. */
-  @Deprecated
-  public static final int OP_STATUS_ERROR_EXISTS = Status.ERROR_EXISTS.code;
-  /** @deprecated Deprecated at 0.21.  Use Status.ERROR_ACCESS_TOKEN instead.*/
-  @Deprecated
-  public static final int OP_STATUS_ERROR_ACCESS_TOKEN = Status.ERROR_ACCESS_TOKEN.code;
-  /** @deprecated Deprecated at 0.21.  Use Status.CHECKSUM_OK instead. */
-  @Deprecated
-  public static final int OP_STATUS_CHECKSUM_OK = Status.CHECKSUM_OK.code;
-
-
   /** Sender */
   @InterfaceAudience.Private
   @InterfaceStability.Evolving



Mime
View raw message