phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-1600) Scanner is left unclosed in MetaDataEndpointImpl#doDropTable()
Date Tue, 20 Jan 2015 23:03:34 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated PHOENIX-1600:
----------------------------
    Attachment: phoenix-1600-001.patch

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