Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3075

AdminService should avoid writing file in case just read instance status

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 2.3.5
    • Fix Version/s: 2.4.0, 3.0.2, 2.3.10, 4.0.0.M2, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      For an instance, admin:list will write underlying cfg file 9 times for each instance, that said, if we have 3 child instance with 1 root instance, "admin:list" will cause 36 times file write which is a significant performance lost as well as more chance to corrupt the cfg file.

      For some operations in AdminService like get***Port, getInstance, getStatus, which are read-only operations, we should avoid writing back to the cfg file after read

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Fang
                Reporter:
                ffang Freeman Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: