You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2018/07/04 05:52:06 UTC
[10/10] flink git commit: [hotfix][network] always destroy buffer
pool in NetworkBufferPoolTest#testRequestMemorySegmentsInterruptable()
[hotfix][network] always destroy buffer pool in NetworkBufferPoolTest#testRequestMemorySegmentsInterruptable()
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/93c7a9b2
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/93c7a9b2
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/93c7a9b2
Branch: refs/heads/master
Commit: 93c7a9b224e8eb498d683fedd2eea2ef31e91a98
Parents: 63730b6
Author: Nico Kruber <ni...@data-artisans.com>
Authored: Tue Jul 3 09:24:45 2018 +0200
Committer: Till Rohrmann <tr...@apache.org>
Committed: Wed Jul 4 07:51:28 2018 +0200
----------------------------------------------------------------------
.../flink/runtime/io/network/buffer/NetworkBufferPoolTest.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/93c7a9b2/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java
index a8ab124..18663f7 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java
@@ -390,6 +390,10 @@ public class NetworkBufferPoolTest {
expectedException.expect(IllegalStateException.class);
expectedException.expectMessage("destroyed");
- asyncRequest.sync();
+ try {
+ asyncRequest.sync();
+ } finally {
+ globalPool.destroy();
+ }
}
}