hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junping Du (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2167) LeveldbIterator should get closed in NMLeveldbStateStoreService#loadLocalizationState() within finally block
Date Tue, 17 Jun 2014 01:19:02 GMT

    [ https://issues.apache.org/jira/browse/YARN-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033286#comment-14033286
] 

Junping Du commented on YARN-2167:
----------------------------------

The patch is very tiny and straight-forward, so no need for additional unit test.

> LeveldbIterator should get closed in NMLeveldbStateStoreService#loadLocalizationState()
within finally block
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-2167
>                 URL: https://issues.apache.org/jira/browse/YARN-2167
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>            Reporter: Junping Du
>            Assignee: Junping Du
>         Attachments: YARN-2167.patch
>
>
> In NMLeveldbStateStoreService#loadLocalizationState(), we have LeveldbIterator to read
NM's localization state but it is not get closed in finally block. We should close this connection
to DB as a common practice. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message