You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/01/20 23:53:34 UTC

[jira] [Created] (PHOENIX-1600) Scanner is left unclosed in MetaDataEndpointImpl#doDropTable()

Ted Yu created PHOENIX-1600:
-------------------------------

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


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