You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2021/03/02 12:27:31 UTC
[flink-statefun] branch master updated (15b2dab -> 5a286c6)
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git.
from 15b2dab [FLINK-21422][docs] Update build and release scripts
add 7d605a4 [hotfix] [java] Set has_value appropriately for TypedValues
add a788c23 [hotfix] Remove redundant console output in ConcurrentRequestReplyHandlerTest
new 5a286c6 [hotfix] Check that incoming / outgoing invocation Messages are non-empty
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:
.../java/org/apache/flink/statefun/sdk/java/handler/ProtoUtils.java | 2 ++
.../org/apache/flink/statefun/sdk/java/io/KafkaEgressMessage.java | 1 +
.../org/apache/flink/statefun/sdk/java/io/KinesisEgressMessage.java | 1 +
.../org/apache/flink/statefun/sdk/java/message/MessageBuilder.java | 6 +++++-
.../org/apache/flink/statefun/sdk/java/message/MessageWrapper.java | 4 ++++
.../sdk/java/handler/ConcurrentRequestReplyHandlerTest.java | 1 -
6 files changed, 13 insertions(+), 2 deletions(-)
[flink-statefun] 01/01: [hotfix] Check that incoming / outgoing
invocation Messages are non-empty
Posted by tz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git
commit 5a286c633358f64aee0ed258df52fa00538436b4
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Tue Mar 2 20:16:27 2021 +0800
[hotfix] Check that incoming / outgoing invocation Messages are non-empty
This closes #205.
---
.../org/apache/flink/statefun/sdk/java/message/MessageWrapper.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/statefun-sdk-java/src/main/java/org/apache/flink/statefun/sdk/java/message/MessageWrapper.java b/statefun-sdk-java/src/main/java/org/apache/flink/statefun/sdk/java/message/MessageWrapper.java
index 74c5955..1eb5e2c 100644
--- a/statefun-sdk-java/src/main/java/org/apache/flink/statefun/sdk/java/message/MessageWrapper.java
+++ b/statefun-sdk-java/src/main/java/org/apache/flink/statefun/sdk/java/message/MessageWrapper.java
@@ -35,6 +35,10 @@ public final class MessageWrapper implements Message {
public MessageWrapper(Address targetAddress, TypedValue typedValue) {
this.targetAddress = Objects.requireNonNull(targetAddress);
+
+ if (!typedValue.getHasValue()) {
+ throw new IllegalStateException("Unset empty Messages are prohibited.");
+ }
this.typedValue = Objects.requireNonNull(typedValue);
}