flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject flink git commit: [FLINK-4332] [checkpoints] Fix SavepointV1Serializer read() / readFully()
Date Tue, 09 Aug 2016 08:27:16 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.1 b054da46e -> 19de8ec01


[FLINK-4332] [checkpoints] Fix SavepointV1Serializer read() / readFully()


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/19de8ec0
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/19de8ec0
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/19de8ec0

Branch: refs/heads/release-1.1
Commit: 19de8ec01a9ec2b3ac0fdf0052b780f970b9bcd1
Parents: b054da4
Author: Stephan Ewen <sewen@apache.org>
Authored: Mon Aug 8 19:16:23 2016 +0200
Committer: Stephan Ewen <sewen@apache.org>
Committed: Mon Aug 8 19:29:55 2016 +0200

----------------------------------------------------------------------
 .../runtime/checkpoint/savepoint/SavepointV1Serializer.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/19de8ec0/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointV1Serializer.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointV1Serializer.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointV1Serializer.java
index 8de29a6..fcdc2ca 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointV1Serializer.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointV1Serializer.java
@@ -138,7 +138,7 @@ class SavepointV1Serializer implements SavepointSerializer<SavepointV0>
{
 					serializedValue = new SerializedValue<>(null);
 				} else {
 					byte[] serializedData = new byte[length];
-					dis.read(serializedData, 0, length);
+					dis.readFully(serializedData, 0, length);
 					serializedValue = SerializedValue.fromBytes(serializedData);
 				}
 
@@ -165,7 +165,7 @@ class SavepointV1Serializer implements SavepointSerializer<SavepointV0>
{
 					serializedValue = new SerializedValue<>(null);
 				} else {
 					byte[] serializedData = new byte[length];
-					dis.read(serializedData, 0, length);
+					dis.readFully(serializedData, 0, length);
 					serializedValue = SerializedValue.fromBytes(serializedData);
 				}
 


Mime
View raw message