[
https://issues.apache.org/jira/browse/PHOENIX-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284656#comment-14284656
]
Samarth Jain commented on PHOENIX-1600:
---------------------------------------
+1. Committed the patch to master and 4.0.
[~tedyu] - the patch doesn't apply to 3.0. Can you please provide one? Thanks!
> 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
> Attachments: phoenix-1600-001.patch, phoenix-1600-002.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)