Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15220 Über-jira: S3a phase V: Hadoop 3.2 features
  3. HADOOP-15392

S3A Metrics in S3AInstrumentation Cause Memory Leaks in HBase Export

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None

      Description

      While using HBase S3A Export Snapshot utility we started to experience memory leaks of the process after version upgrade.

      By running code analysis we traced the cause to revision 6555af81a26b0b72ec3bee7034e01f5bd84b1564 that added the following static reference (singleton):

      private static MetricsSystem metricsSystem = null;

      When application uses S3AFileSystem instance that is not closed immediately metrics are accumulated in this instance and memory grows without any limit.

       

      Expectation:

      • It would be nice to have an option to disable metrics completely as this is not needed for Export Snapshot utility.
      • Usage of S3AFileSystem should not contain any static object that can grow indefinitely.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Krizek Voyta
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: