Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-11903

Ozone: Cleaning up local storage when closing MiniOzoneCluster

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    Description

      Currently we don't delete the local storage when closing MiniOzoneCluster, which will cause creating volume with the same name to fail, even in a new JVM process. Let's delete the local storage files: /tmp/ozone/metadata.db and /tmp/ozone/user.db when closing.

      Please note this is not a complete solution. As the OzoneMetadataManager currently is a singleton, we are not able to create two independent MiniOzoneCluster in a single JVM. Data maybe shared unexpectedly. Let's address that in another JIRA, if needed.

      Attachments

        1. HDFS-11903-HDFS-7240.000.patch
          1 kB
          Mingliang Liu

        Activity

          People

            liuml07 Mingliang Liu
            liuml07 Mingliang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: