Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1511

Space tracking for Open Containers in HDDS Volumes

    XMLWordPrintableJSON

Details

    • Done

    Description

      For every HDDS Volume, track the space usage in open containers. Introduce a counter committedBytes in HddsVolume - this counts the remaining space in Open containers until they reach max capacity. The counter is incremented (by container max capacity) for every container create. And decremented (by chunk size) for every chunk write.

      Space tracking for open containers will enable adding a safety check during container create.
      If there is not sufficient free space in the volume, the container create operation can be failed.

      The scope of this jira is to just add the space tracking for Open Containers. Checking for space and failing container create will be introduced in a subsequent jira.

      Attachments

        1. HDDS-1511.001.patch
          9 kB
          Supratim Deka
        2. HDDS-1511.000.patch
          9 kB
          Supratim Deka

        Issue Links

          Activity

            People

              sdeka Supratim Deka
              sdeka Supratim Deka
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m