You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/10/02 00:17:42 UTC

[GitHub] [flink] kezhuw commented on a change in pull request #13375: [FLINK-18815][filesystems][tests] Join SafetyNetCloseableRegistry's reaper thread before assertion

kezhuw commented on a change in pull request #13375:
URL: https://github.com/apache/flink/pull/13375#discussion_r498570772



##########
File path: flink-core/src/main/java/org/apache/flink/core/fs/SafetyNetCloseableRegistry.java
##########
@@ -134,10 +135,17 @@ public void close() throws IOException {
 				--GLOBAL_SAFETY_NET_REGISTRY_COUNT;
 				if (0 == GLOBAL_SAFETY_NET_REGISTRY_COUNT) {
 					REAPER_THREAD.interrupt();

Review comment:
       All reclamation related classes and methods, say, `CloseableReaperThread`, `PhantomDelegatingCloseableRef` and `SafetyNetCloseableRegistry(Supplier<CloseableReaperThread> reaperThreadSupplier)`, are private or visible for testing, normal clients should care only about the reclamation of leaking resources guarantee exported by `SafetyNetCloseableRegistry`, "join on the reaper thread" does not belong to that exported guarantee.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org