HDFS-2043. TestHFlush failing intermittently. Contributed by Lin Yiqun.
This commit is contained in:
parent
9f51a3f430
commit
dd8aba3fad
@ -170,6 +170,8 @@ Release 2.7.3 - UNRELEASED
|
|||||||
HDFS-10347. Namenode report bad block method doesn't log the bad block or
|
HDFS-10347. Namenode report bad block method doesn't log the bad block or
|
||||||
datanode. (Rushabh Shah via kihwal)
|
datanode. (Rushabh Shah via kihwal)
|
||||||
|
|
||||||
|
HDFS-2043. TestHFlush failing intermittently. (Lin Yiqun via iwasakims)
|
||||||
|
|
||||||
Release 2.7.2 - 2016-01-25
|
Release 2.7.2 - 2016-01-25
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -484,8 +484,14 @@ public void testHFlushInterrupted() throws Exception {
|
|||||||
// If we got the exception, we shouldn't have interrupted status anymore.
|
// If we got the exception, we shouldn't have interrupted status anymore.
|
||||||
assertFalse(Thread.interrupted());
|
assertFalse(Thread.interrupted());
|
||||||
|
|
||||||
// Now do a successful close.
|
// Do the try-catch in the second stm.close() avoid that streamer was already
|
||||||
stm.close();
|
// closed in other places.
|
||||||
|
try {
|
||||||
|
// Now do a successful close.
|
||||||
|
stm.close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
System.out.println("Got expected exception during second close");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user