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
This commit is contained in:
parent
64cbb3c2ff
commit
6e82da0dea
|
@ -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.
|
||||
|
|
|
@ -51,7 +51,7 @@ public class TestVolumeId {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private <T> void testEq(final boolean eq, Comparable<? super T> id1, Comparable<? super T> id2) {
|
||||
private <T> void testEq(final boolean eq, Comparable<T> id1, Comparable<T> id2) {
|
||||
final int h1 = id1.hashCode();
|
||||
final int h2 = id2.hashCode();
|
||||
|
||||
|
@ -99,8 +99,8 @@ public class TestVolumeId {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private <T> void testEqMany(final boolean eq, Comparable<? super T>... volumeIds) {
|
||||
Comparable<? super T> vidNext;
|
||||
private <T> void testEqMany(final boolean eq, Comparable<T>... volumeIds) {
|
||||
Comparable<T> vidNext;
|
||||
int sum = 0;
|
||||
for (int i=0; i<volumeIds.length; i++) {
|
||||
if (i == volumeIds.length - 1) {
|
||||
|
|
Loading…
Reference in New Issue