Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1600

Scanner is left unclosed in MetaDataEndpointImpl#doDropTable()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.3.0, 3.3.0
    • None
    • None

    Description

              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);
              }
      

      scanner is left unclosed.
      buildDeletedTable() has unclosed scanner as well.

      Attachments

        1. phoenix-1600-001.patch
          9 kB
          Ted Yu
        2. phoenix-1600-002.patch
          9 kB
          Ted Yu
        3. phoenix-1600-3.0.patch
          9 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: