Menu

#941 LOG: Log service configuration not backwards compatible

4.3.3
fixed
elunlen
None
defect
log
-
major
2014-06-27
2014-06-12
elunlen
No

Problem

Application and System/Notification stream (mailbox queue) limits can be configured in the log service configuration object:
logStreamSystemLowLimit SA_UINT32_T 0 (0x0)
logStreamSystemHighLimit SA_UINT32_T 0 (0x0)
logStreamAppLowLimit SA_UINT32_T 0 (0x0)
logStreamAppHighLimit SA_UINT32_T 0 (0x0)

Previously environment variables where used (defined in logd.conf file). If a configuration object exists environment variables possibly from an older configuration are ignored. This breaks backwards compatibility.

See also [#841] LOG: Wrong default logStreamAppHighLimit (1)

Solution

The above attributes shall be handled as follows:
- If value is 0 and a corresponding environment variable exists the value in the environment variable shall be used.
- If the value is not 0 environment variable is ignored
- Configuration of the attributes is always logged in the syslog

Related

Tickets: #841
Tickets: #941
Wiki: ChangeLog-4.3.3
Wiki: ChangeLog-4.4.1

Discussion

  • elunlen

    elunlen - 2014-06-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,6 +8,8 @@
    
     Previously environment variables where used (defined in logd.conf file). If a configuration object exists environment variables possibly from an older configuration are ignored. This breaks backwards compatibility.
    
    +See also [#841] LOG: Wrong default logStreamAppHighLimit (1)
    +
     Solution
     --------
     The above attributes shall be handled as follows:
    
     
  • elunlen

    elunlen - 2014-06-24
    • status: accepted --> review
     
  • elunlen

    elunlen - 2014-06-27

    changeset: 5448:388e290fc122
    tag: tip
    parent: 5445:0d251b0b2409
    user: Lennart Lund lennart.lund@ericsson.com
    date: Fri Jun 27 15:29:39 2014 +0200
    summary: log: For overload limits use environment variable value if limit in config object is 0 [#941]

    rev: 388e290fc122fdf1ff19d55092b39b31c5519b63

    changeset: 5447:6b3fef573fe7
    branch: opensaf-4.4.x
    parent: 5444:925404980ade
    user: Lennart Lund lennart.lund@ericsson.com
    date: Fri Jun 27 15:29:39 2014 +0200
    summary: log: For overload limits use environment variable value if limit in config object is 0 [#941]

    rev: 6b3fef573fe78134f8e15d75734c9dcf80fb3562

    changeset: 5446:7ba3b6f573a1
    branch: opensaf-4.3.x
    parent: 5443:ff6cc85adf58
    user: Lennart Lund lennart.lund@ericsson.com
    date: Fri Jun 27 15:27:07 2014 +0200
    summary: log: For overload limits use environment variable value if limit in config object is 0 [#941]

    rev: 7ba3b6f573a1c444347a03effc87452ee3f06209

     

    Related

    Tickets: #941

  • elunlen

    elunlen - 2014-06-27
    • status: review --> fixed
     

Log in to post a comment.