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

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

                Author: ASF GitHub Bot
            Created on: 27/Mar/21 11:58
            Start Date: 27/Mar/21 11:58
    Worklog Time Spent: 10m 
      Work Description: GauthamBanasandra commented on pull request #2824:
URL: https://github.com/apache/hadoop/pull/2824#issuecomment-808721431


   This PR fixes the following warnings reported in 
https://github.com/apache/hadoop/pull/2792 in CI run - 
https://github.com/apache/hadoop/pull/2792#issuecomment-808709573
   
   ```
   [WARNING] 
/home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:138:22:
 warning: catching polymorphic type 'const class hdfs::uri_parse_error' by 
value [-Wcatch-value=]
   [WARNING] 
/home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:151:27:
 warning: catching polymorphic type 'struct hdfs::ha_parse_error' by value 
[-Wcatch-value=]
   ```


-- 
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:
[email protected]


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

    Worklog Id:     (was: 573023)
    Time Spent: 20m  (was: 10m)

> Catch polymorphic type by reference
> -----------------------------------
>
>                 Key: HDFS-15927
>                 URL: https://issues.apache.org/jira/browse/HDFS-15927
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs++
>    Affects Versions: 3.4.0
>            Reporter: Gautham Banasandra
>            Assignee: Gautham Banasandra
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Need to catch polymorphic exception types by reference in order to realize 
> the polymorphic usage, if any. Otherwise, the functionality of the caught 
> object is restricted to only that of the base class.
> Also, the following warning gets reported since it's currently caught by 
> value -
> {code:java}
> [WARNING] 
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:138:22:
>  warning: catching polymorphic type 'const class hdfs::uri_parse_error' by 
> value [-Wcatch-value=]
> [WARNING] 
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:151:27:
>  warning: catching polymorphic type 'struct hdfs::ha_parse_error' by value 
> [-Wcatch-value=]
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to