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);
|
||||
String keyStr = String.format(localFormatter, i);
|
||||
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));
|
||||
assertTrue("bytes for vals do not match " + valStr + " "
|
||||
+ new String(val), Arrays.equals(
|
||||
@ -117,7 +117,7 @@ private int readAndCheckbytes(Scanner scanner, int start, int n)
|
||||
assertTrue(scanner.advance());
|
||||
key = readKey(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));
|
||||
assertTrue("bytes for vals do not match", Arrays.equals(
|
||||
valStr.getBytes(), val));
|
||||
@ -146,11 +146,11 @@ private int readLargeRecords(Scanner scanner, int start, int n)
|
||||
for (int i = start; i < (start + n); i++) {
|
||||
byte[] key = readKey(scanner);
|
||||
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));
|
||||
scanner.advance();
|
||||
key = readKey(scanner);
|
||||
assertTrue("btyes for keys do not match", Arrays.equals(
|
||||
assertTrue("bytes for keys do not match", Arrays.equals(
|
||||
keyStr.getBytes(), key));
|
||||
scanner.advance();
|
||||
}
|
||||
|
@ -21,4 +21,4 @@ BYTESCOPIED.name= Bytes Copied
|
||||
BYTESEXPECTED.name= Bytes Expected
|
||||
BYTESFAILED.name= Bytes Failed
|
||||
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