You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2014/12/18 05:14:13 UTC

[jira] [Resolved] (KARAF-3075) AdminService should avoid writing file in case just read instance status

     [ https://issues.apache.org/jira/browse/KARAF-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved KARAF-3075.
---------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 2.3.6)
                   2.4.0
                   2.3.10

> AdminService should avoid writing file in case just read instance status
> ------------------------------------------------------------------------
>
>                 Key: KARAF-3075
>                 URL: https://issues.apache.org/jira/browse/KARAF-3075
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-instance
>    Affects Versions: 3.0.1, 2.3.5
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.0.0, 2.3.10, 3.0.2, 2.4.0
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)