You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by dw...@apache.org on 2021/05/26 15:26:32 UTC

[flink] branch benchmark-request updated (d83d0e9 -> 39acb9b)

This is an automated email from the ASF dual-hosted git repository.

dwysakowicz pushed a change to branch benchmark-request
in repository https://gitbox.apache.org/repos/asf/flink.git.


 discard d83d0e9  Revert IDLE/ACTIVE on records
     new 39acb9b  Constant NO_OP Autocloseable

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d83d0e9)
            \
             N -- N -- N   refs/heads/benchmark-request (39acb9b)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/flink/streaming/runtime/io/RecordWriterOutput.java | 2 +-
 .../flink/streaming/runtime/streamstatus/AnnouncedStatus.java     | 8 +++++++-
 .../streaming/runtime/tasks/MultipleInputStreamTaskTest.java      | 2 ++
 3 files changed, 10 insertions(+), 2 deletions(-)

[flink] 01/01: Constant NO_OP Autocloseable

Posted by dw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dwysakowicz pushed a commit to branch benchmark-request
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 39acb9b1ac0b42d806b6d5dc8cd476d6027ec9a8
Author: Dawid Wysakowicz <dw...@apache.org>
AuthorDate: Wed May 26 10:54:57 2021 +0200

    Constant NO_OP Autocloseable
---
 .../flink/streaming/runtime/streamstatus/AnnouncedStatus.java     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamstatus/AnnouncedStatus.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamstatus/AnnouncedStatus.java
index 3cd055b..209c6c8 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamstatus/AnnouncedStatus.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamstatus/AnnouncedStatus.java
@@ -30,6 +30,12 @@ import java.util.function.Consumer;
  */
 @Internal
 public final class AnnouncedStatus {
+    private static final AutoCloseable NO_OP =
+            new AutoCloseable() {
+                @Override
+                public void close() {}
+            };
+
     private StreamStatus currentStatus;
 
     public AnnouncedStatus(StreamStatus currentStatus) {
@@ -65,6 +71,6 @@ public final class AnnouncedStatus {
             statusConsumer.accept(StreamStatus.ACTIVE);
             return () -> statusConsumer.accept(StreamStatus.IDLE);
         }
-        return () -> {};
+        return NO_OP;
     }
 }