From 6e82da0deae0f62b31949f900b7534d29a127401 Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Mon, 10 Dec 2012 23:46:10 +0000 Subject: [PATCH] HDFS-4294. Backwards compatibility is not maintained for TestVolumeId. Contributed by Ivan A. Veselovsky and Robert Parker. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1419875 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../src/test/java/org/apache/hadoop/fs/TestVolumeId.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 00435d4ebb..d053580d8a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -597,6 +597,9 @@ Release 2.0.3-alpha - Unreleased HDFS-4295. Using port 1023 should be valid when starting Secure DataNode (Stephen Chu via todd) + HDFS-4294. Backwards compatibility is not maintained for TestVolumeId. + (Ivan A. Veselovsky and Robert Parker via atm) + BREAKDOWN OF HDFS-3077 SUBTASKS HDFS-3077. Quorum-based protocol for reading and writing edit logs. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestVolumeId.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestVolumeId.java index da6f192a75..3584f21b1a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestVolumeId.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestVolumeId.java @@ -51,7 +51,7 @@ public void testEquality() { } @SuppressWarnings("unchecked") - private void testEq(final boolean eq, Comparable id1, Comparable id2) { + private void testEq(final boolean eq, Comparable id1, Comparable id2) { final int h1 = id1.hashCode(); final int h2 = id2.hashCode(); @@ -99,8 +99,8 @@ private static int sign(int x) { } @SuppressWarnings("unchecked") - private void testEqMany(final boolean eq, Comparable... volumeIds) { - Comparable vidNext; + private void testEqMany(final boolean eq, Comparable... volumeIds) { + Comparable vidNext; int sum = 0; for (int i=0; i