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

Reduce the number of system calls when DN writes a key

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 1.4.0
    • None

    Description

      To execute `HddsDispatcher.sendCloseContainerActionIfNeeded` once, need to call `getCapacity()` 3 times and `getAvailable()` 2 times.

      The `getCapacity()` and `getAvailable()` are System call, we need reduce the System calls.

       Here reduces the number of `getCapacity()` and `getAvailable()` calls to one each.

      Attachments

        1. cpu_dn_create_key2_long.html
          416 kB
          ChenXi
        2. image-2023-10-03-21-54-25-419.png
          202 kB
          ChenXi
        3. cpu_dn_create_key_afer_hdds_9380.html
          747 kB
          ChenXi

        Issue Links

          Activity

            People

              XiChen ChenXi
              XiChen ChenXi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: