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

ASF GitHub Bot logged work on HADOOP-17863:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Sep/21 03:53
            Start Date: 08/Sep/21 03:53
    Worklog Time Spent: 10m 
      Work Description: sumangala-patki commented on a change in pull request 
#3332:
URL: https://github.com/apache/hadoop/pull/3332#discussion_r704004019



##########
File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TextFileBasedIdentityHandler.java
##########
@@ -186,6 +188,14 @@ private static void loadMap(HashMap<String, String> cache, 
String fileLocation,
       LOG.debug("Loaded map stats - File: {}, Loaded: {}, Error: {} ", 
fileLocation, cache.size(), errorRecord);
     } catch (ArrayIndexOutOfBoundsException e) {
       LOG.error("Error while parsing mapping file", e);
+    } finally {
+      try {

Review comment:
       done, thank you!




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 647703)
    Time Spent: 1h 50m  (was: 1h 40m)

> ABFS: Fix compiler deprecation warning in TextFileBasedIdentityHandler
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-17863
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17863
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.3.1
>            Reporter: Sumangala Patki
>            Assignee: Sumangala Patki
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> TextFileBasedIdentityHandler uses an instance of LineIterator whose 
> closeQuietly method has been deprecated, resulting in compiler warnings 
> during yetus runs. Fix by leveraging a try-with-resources block to avoid the 
> explicit call to closeQuietly by the LineIterator instance.
> hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TextFileBasedIdentityHandler.java:192:18:[deprecation]
>  closeQuietly(LineIterator) in LineIterator has been deprecated



--
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