You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/02 18:09:00 UTC

[jira] [Work logged] (HDFS-15947) Replace deprecated protobuf APIs

     [ https://issues.apache.org/jira/browse/HDFS-15947?focusedWorklogId=576217&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-576217 ]

ASF GitHub Bot logged work on HDFS-15947:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Apr/21 18:08
            Start Date: 02/Apr/21 18:08
    Worklog Time Spent: 10m 
      Work Description: GauthamBanasandra opened a new pull request #2856:
URL: https://github.com/apache/hadoop/pull/2856


   * Used the appropriate Protobuf APIs to
     replace those which are on the path to
     deprecation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 576217)
    Remaining Estimate: 0h
            Time Spent: 10m

> Replace deprecated protobuf APIs
> --------------------------------
>
>                 Key: HDFS-15947
>                 URL: https://issues.apache.org/jira/browse/HDFS-15947
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs++
>    Affects Versions: 3.4.0
>            Reporter: Gautham Banasandra
>            Assignee: Gautham Banasandra
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Some protobuf APIs are soon going to get deprecated and must be replaced with newer ones. One of the warnings are reported due to the issue is as follows -
> {code}
> [ 48%] Building CXX object main/native/libhdfspp/tests/CMakeFiles/rpc_engine_test.dir/rpc_engine_test.cc.o
> /mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc: In function ‘std::pair<boost::system::error_code, std::__cxx11::basic_string<char> > RpcResponse(const hadoop::common::RpcResponseHeaderProto&, const string&, const boost::system::error_code&)’:
> /mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc:92:56: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
>    92 |       pbio::CodedOutputStream::VarintSize32(h.ByteSize()) +
>       |                                                        ^
> In file included from /usr/local/include/google/protobuf/generated_enum_util.h:36,
>                  from /usr/local/include/google/protobuf/map.h:49,
>                  from /usr/local/include/google/protobuf/generated_message_table_driven.h:34,
>                  from /mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/out/build/WSL-GCC-Debug/main/native/libhdfspp/tests/test.pb.h:26,
>                  from /mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc:22:
> /usr/local/include/google/protobuf/message_lite.h:408:7: note: declared here
>   408 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
>       |       ^~~~~~~~
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org