You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2016/03/09 23:24:21 UTC

[3/4] incubator-kudu git commit: pb_util: fix error message when PB container is truncated

pb_util: fix error message when PB container is truncated

Change-Id: Iecc2c6614511b4abdce7bf148892d1efdc87c203
Reviewed-on: http://gerrit.cloudera.org:8080/2502
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <ad...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/6b0e5d75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/6b0e5d75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/6b0e5d75

Branch: refs/heads/master
Commit: 6b0e5d757bc18a7c5f8ac78b6568cd68ab0c2a8b
Parents: c312559
Author: Todd Lipcon <to...@apache.org>
Authored: Wed Mar 9 09:40:23 2016 -0800
Committer: Adar Dembo <ad...@cloudera.com>
Committed: Wed Mar 9 20:06:57 2016 +0000

----------------------------------------------------------------------
 src/kudu/util/pb_util.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/6b0e5d75/src/kudu/util/pb_util.cc
----------------------------------------------------------------------
diff --git a/src/kudu/util/pb_util.cc b/src/kudu/util/pb_util.cc
index 4ddbabc..682704a 100644
--- a/src/kudu/util/pb_util.cc
+++ b/src/kudu/util/pb_util.cc
@@ -586,8 +586,8 @@ Status ReadablePBContainerFile::ValidateAndRead(size_t length, EofOK eofOK,
       case EOF_NOT_OK:
         return Status::Corruption("File size not large enough to be valid",
                                   Substitute("Proto container file $0: "
-                                      "tried to read $0 bytes at offset "
-                                      "$1 but file size is only $2",
+                                      "tried to read $1 bytes at offset "
+                                      "$2 but file size is only $3",
                                       reader_->filename(), length,
                                       offset_, file_size));
       default: