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 2019/10/30 14:32:27 UTC

[GitHub] [flink] AHeise commented on a change in pull request #10029: [FLINK-14553][runtime] Respect non-blocking output in StreamTask#processInput

AHeise commented on a change in pull request #10029:  [FLINK-14553][runtime] Respect non-blocking output in StreamTask#processInput
URL: https://github.com/apache/flink/pull/10029#discussion_r340643656
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/AvailabilityProvider.java
 ##########
 @@ -29,10 +29,30 @@
 public interface AvailabilityProvider {
 	/**
 	 * Constant that allows to avoid volatile checks {@link CompletableFuture#isDone()}. Check
-	 * {@link #getAvailableFuture()} for more explanation.
+	 * {@link #isAvailable()} and {@link #isVolatileAvailable()}for more explanation.
 	 */
 	CompletableFuture<?> AVAILABLE = CompletableFuture.completedFuture(null);
 
+	/**
+	 * Checks whether this instance is available via constant {@link #AVAILABLE} to avoid volatile access.
+	 *
+	 * @return true if this instance is available for further processing.
+	 */
+	default boolean isAvailable() {
 
 Review comment:
   I'd either squash them as Piotr suggested or at least move them closer and have a forwards reference in the first commit that's this is happening. But at that point, having a single commit is probably more plausible

----------------------------------------------------------------
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


With regards,
Apache Git Services