You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/11/19 07:36:40 UTC
[flink] branch release-1.7 updated: [FLINK-10916][streaming]
Include duplicated user-specified uid in error message
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch release-1.7
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.7 by this push:
new 3c1f14e [FLINK-10916][streaming] Include duplicated user-specified uid in error message
3c1f14e is described below
commit 3c1f14ebecf74e7e014a11c8f790061dd0a79b2d
Author: Mododo <mi...@gmail.com>
AuthorDate: Mon Nov 19 10:36:32 2018 +0300
[FLINK-10916][streaming] Include duplicated user-specified uid in error message
---
.../java/org/apache/flink/streaming/api/graph/StreamGraphHasherV2.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphHasherV2.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphHasherV2.java
index d7c51bc..a87f49f 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphHasherV2.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphHasherV2.java
@@ -177,7 +177,8 @@ public class StreamGraphHasherV2 implements StreamGraphHasher {
for (byte[] previousHash : hashes.values()) {
if (Arrays.equals(previousHash, hash)) {
- throw new IllegalArgumentException("Hash collision on user-specified ID. " +
+ throw new IllegalArgumentException("Hash collision on user-specified ID " +
+ "\"" + userSpecifiedHash + "\". " +
"Most likely cause is a non-unique ID. Please check that all IDs " +
"specified via `uid(String)` are unique.");
}