HADOOP-16909 Typo in distcp counters.
Contributed by Sebastian Nagel.
This commit is contained in:
parent
c6b8a30386
commit
18050bc583
@ -109,7 +109,7 @@ private int readAndCheckbytes(Scanner scanner, int start, int n)
|
|||||||
byte[] val = readValue(scanner);
|
byte[] val = readValue(scanner);
|
||||||
String keyStr = String.format(localFormatter, i);
|
String keyStr = String.format(localFormatter, i);
|
||||||
String valStr = value + keyStr;
|
String valStr = value + keyStr;
|
||||||
assertTrue("btyes for keys do not match " + keyStr + " "
|
assertTrue("bytes for keys do not match " + keyStr + " "
|
||||||
+ new String(key), Arrays.equals(keyStr.getBytes(), key));
|
+ new String(key), Arrays.equals(keyStr.getBytes(), key));
|
||||||
assertTrue("bytes for vals do not match " + valStr + " "
|
assertTrue("bytes for vals do not match " + valStr + " "
|
||||||
+ new String(val), Arrays.equals(
|
+ new String(val), Arrays.equals(
|
||||||
@ -117,7 +117,7 @@ private int readAndCheckbytes(Scanner scanner, int start, int n)
|
|||||||
assertTrue(scanner.advance());
|
assertTrue(scanner.advance());
|
||||||
key = readKey(scanner);
|
key = readKey(scanner);
|
||||||
val = readValue(scanner);
|
val = readValue(scanner);
|
||||||
assertTrue("btyes for keys do not match", Arrays.equals(
|
assertTrue("bytes for keys do not match", Arrays.equals(
|
||||||
keyStr.getBytes(), key));
|
keyStr.getBytes(), key));
|
||||||
assertTrue("bytes for vals do not match", Arrays.equals(
|
assertTrue("bytes for vals do not match", Arrays.equals(
|
||||||
valStr.getBytes(), val));
|
valStr.getBytes(), val));
|
||||||
@ -146,11 +146,11 @@ private int readLargeRecords(Scanner scanner, int start, int n)
|
|||||||
for (int i = start; i < (start + n); i++) {
|
for (int i = start; i < (start + n); i++) {
|
||||||
byte[] key = readKey(scanner);
|
byte[] key = readKey(scanner);
|
||||||
String keyStr = String.format(localFormatter, i);
|
String keyStr = String.format(localFormatter, i);
|
||||||
assertTrue("btyes for keys do not match", Arrays.equals(
|
assertTrue("bytes for keys do not match", Arrays.equals(
|
||||||
keyStr.getBytes(), key));
|
keyStr.getBytes(), key));
|
||||||
scanner.advance();
|
scanner.advance();
|
||||||
key = readKey(scanner);
|
key = readKey(scanner);
|
||||||
assertTrue("btyes for keys do not match", Arrays.equals(
|
assertTrue("bytes for keys do not match", Arrays.equals(
|
||||||
keyStr.getBytes(), key));
|
keyStr.getBytes(), key));
|
||||||
scanner.advance();
|
scanner.advance();
|
||||||
}
|
}
|
||||||
|
@ -21,4 +21,4 @@ BYTESCOPIED.name= Bytes Copied
|
|||||||
BYTESEXPECTED.name= Bytes Expected
|
BYTESEXPECTED.name= Bytes Expected
|
||||||
BYTESFAILED.name= Bytes Failed
|
BYTESFAILED.name= Bytes Failed
|
||||||
BYTESSKIPPED.name= Bytes Skipped
|
BYTESSKIPPED.name= Bytes Skipped
|
||||||
BANDWIDTH_IN_BYTES.name= Bandwidth in Btyes
|
BANDWIDTH_IN_BYTES.name= Bandwidth in Bytes
|
Loading…
Reference in New Issue
Block a user