Repository: hadoop Updated Branches: refs/heads/HDFS-8707 e117c6a0a -> 8d215aabc
HDFS-9753. libhdfs++: Client fails to pass TokenProto from LocatedBlockProto to server when reading a block. Contributed by James Clampffer. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8d215aab Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8d215aab Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8d215aab Branch: refs/heads/HDFS-8707 Commit: 8d215aabcb98f02a0dad9580b75548e65c9291ee Parents: e117c6a Author: James <[email protected]> Authored: Fri Feb 5 11:23:57 2016 -0500 Committer: James <[email protected]> Committed: Fri Feb 5 11:23:57 2016 -0500 ---------------------------------------------------------------------- .../src/main/native/libhdfspp/lib/fs/filehandle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d215aab/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc index de9ccca..ad630c0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc @@ -191,7 +191,7 @@ void FileHandleImpl::AsyncPreadSome( // This is where we will put the logic for re-using a DN connection; we can // steal the FileHandle's dn and put it back when we're done - std::shared_ptr<DataNodeConnection> dn = CreateDataNodeConnection(io_service_, chosen_dn, nullptr /*token*/); + std::shared_ptr<DataNodeConnection> dn = CreateDataNodeConnection(io_service_, chosen_dn, &block->blocktoken()); std::string dn_id = dn->uuid_; std::string client_name = client_name_;
