phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-1600) Scanner is left unclosed in MetaDataEndpointImpl#doDropTable()
Date Wed, 21 Jan 2015 00:02:37 GMT

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

Hudson commented on PHOENIX-1600:
---------------------------------

SUCCESS: Integrated in Phoenix-master #563 (See [https://builds.apache.org/job/Phoenix-master/563/])
PHOENIX-1600 Scanner is left unclosed in MetaDataEndpointImpl#doDropTable() (Ted Yu) (samarth.jain:
rev 168ab7ad990813640047059e7f8eb55dc06ad6ea)
* phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java


> Scanner is left unclosed in MetaDataEndpointImpl#doDropTable()
> --------------------------------------------------------------
>
>                 Key: PHOENIX-1600
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1600
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: 5.0.0, 4.3, 3.3
>
>         Attachments: phoenix-1600-001.patch, phoenix-1600-002.patch, phoenix-1600-3.0.patch
>
>
> {code}
>         RegionScanner scanner = region.getScanner(scan);
>         List<Cell> results = Lists.newArrayList();
>         scanner.next(results);
>         if (results.isEmpty()) { // Should not be possible
>             return new MetaDataMutationResult(MutationCode.TABLE_NOT_FOUND, EnvironmentEdgeManager.currentTimeMillis(),
null);
>         }
> {code}
> scanner is left unclosed.
> buildDeletedTable() has unclosed scanner as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message