tillrohrmann closed pull request #6821: [FLINK-10524] Retry
MemoryManager#release if NoSuchElementException
URL: https://github.com/apache/flink/pull/6821
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
index d1a304a4909..664e5632afb 100644
---
a/flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
+++
b/flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
@@ -36,6 +36,7 @@
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
+import java.util.NoSuchElementException;
import java.util.Set;
/**
@@ -454,7 +455,7 @@ public void release(Collection<MemorySegment> segments) {
// the only way to exit the loop
successfullyReleased = true;
}
- catch (ConcurrentModificationException e) {
+ catch (ConcurrentModificationException |
NoSuchElementException e) {
// this may happen in the case where an
asynchronous
// call releases the memory. fall
through the loop and try again
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services