You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2020/08/28 14:48:21 UTC

[flink] 05/09: [hotfix][network] Fix wrong string formatting for BufferOrEvent

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

sewen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 51cde3a6d45d4ca8d50c049c589938c92026801f
Author: Stephan Ewen <se...@apache.org>
AuthorDate: Mon Aug 24 17:07:16 2020 +0200

    [hotfix][network] Fix wrong string formatting for BufferOrEvent
    
    This previously assigned an object type to a %d argument, but should use a %s argument.
---
 .../flink/runtime/io/network/partition/consumer/BufferOrEvent.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/BufferOrEvent.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/BufferOrEvent.java
index 498e338..f1a365c 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/BufferOrEvent.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/BufferOrEvent.java
@@ -102,7 +102,7 @@ public class BufferOrEvent {
 
 	@Override
 	public String toString() {
-		return String.format("BufferOrEvent [%s, channelInfo = %d, size = %d]",
+		return String.format("BufferOrEvent [%s, channelInfo = %s, size = %d]",
 				isBuffer() ? buffer : event, channelInfo, size);
 	}