Menu

#1628 ntf: syslog is flooded due to using LOG_WA in write_log_callback

4.6.2
fixed
Praveen
None
defect
ntf
d
default
minor
2015-12-17
2015-12-08
No

NTF service is using LOG_WA() to log debug information in the ”write Log callback”.
If LOG service is busy for doing something, the callback will be invoked many times with error code SA_AIS_ERR_TRY_AGAIN (6) and will make the syslog overflow with the same error message as below.

Nov 20 13:35:14 SC-1 osafntfd[5121]: WA Error when logging (6), queue for relogging
Nov 20 13:35:14 SC-1 osafntfd[5121]: WA Error when logging (6), queue for relogging
Nov 20 13:35:14 SC-1 osafntfd[5121]: WA Error when logging (6), queue for relogging

NTF should use TRACE() instead of LOG_WA to log this debug info.

Related

Wiki: ChangeLog-4.6.2

Discussion

  • Praveen

    Praveen - 2015-12-09
    • status: unassigned --> accepted
    • assigned_to: Praveen
    • Part: - --> d
     
  • Praveen

    Praveen - 2015-12-09

    I think it must be a defect. Is there any specific reason for raising it as enhancement?

     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2015-12-09

    The code does not cause any defect/error in term of NTF functionalities, than I thought it should be an enhancement.

     
  • Praveen

    Praveen - 2015-12-14
    • status: accepted --> review
    • Type: enhancement --> defect
    • Version: --> default
    • Milestone: 5.0.FC --> 4.6.2
     
  • Praveen

    Praveen - 2015-12-17
    • status: review --> fixed
     
  • Praveen

    Praveen - 2015-12-17

    changeset: 7179:f00e4b2470e2
    branch: opensaf-4.6.x
    user: praveen.malviya@oracle.com
    date: Thu Dec 17 14:42:03 2015 +0530
    summary: ntfd: fix syslog warning when queueing notification for relogging [1628]

    changeset: 7180:67824b1eaeb7
    branch: opensaf-4.7.x
    parent: 7177:2ad01db11a92
    user: praveen.malviya@oracle.com
    date: Thu Dec 17 14:42:28 2015 +0530
    summary: ntfd: fix syslog warning when queueing notification for relogging [1628]

    changeset: 7181:ff4f4f5c68a6
    tag: tip
    parent: 7176:0ee74e9625ef
    user: praveen.malviya@oracle.com
    date: Thu Dec 17 14:42:47 2015 +0530
    summary: ntfd: fix syslog warning when queueing notification for relogging [1628]

     

Log in to post a comment.