When users open an application stream with maxFilesRotated is set to zero (0) or leave it to default value, logsv will get stuck in a while loop forever.
It is not relevant to set maxFilesRotated to a zero value.
This parameter must be validated in API and in server. If a stream with configurattion object is created (using IMM and the log OI) a validation must also be done. The rule shall be that the value > 0.
Also the default value must be changed from 0 to a valid value. For the preconfigured streams the value is set to 4 so this could be a suitable default value for application streams as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
summary: logsv: logsv gets stuck in a loop if passing zero(0) to maxFilesRotated --> log: logsv gets stuck in a loop if passing zero(0) to maxFilesRotated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note: When creating an application stream with a configuration object this value is validated value > 0
See [#448]. Value is not checked in API when creating an application stream with runtime object
It is not relevant to set maxFilesRotated to a zero value.
This parameter must be validated in API and in server. If a stream with configurattion object is created (using IMM and the log OI) a validation must also be done. The rule shall be that the value > 0.
Also the default value must be changed from 0 to a valid value. For the preconfigured streams the value is set to 4 so this could be a suitable default value for application streams as well.
Note: When creating an application stream with a configuration object this value is validated value > 0
See [#448]. Value is not checked in API when creating an application stream with runtime object
Related
Tickets:
#448changeset: 6855:9febfe363577
tag: tip
parent: 6852:c2cb70c2e0d6
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Fri Sep 18 02:32:21 2015 +0100
summary: logsv: fix logsv gets stuck in a loop if passing zero(0) to maxFilesRotated [#1399]
rev: 9febfe363577ea5ce56d2975065c641d1174807c
changeset: 6854:d2c027f76541
branch: opensaf-4.6.x
parent: 6851:b0b8ac13e307
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Fri Sep 18 02:32:21 2015 +0100
summary: logsv: fix logsv gets stuck in a loop if passing zero(0) to maxFilesRotated [#1399]
rev: d2c027f765414bdc5d3529198607531f59a0e4a2
changeset: 6853:0cea38c71001
branch: opensaf-4.5.x
parent: 6850:14d148411636
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Fri Sep 18 02:32:21 2015 +0100
summary: logsv: fix logsv gets stuck in a loop if passing zero(0) to maxFilesRotated [#1399]
rev: 0cea38c71001feea617324b0d5ed2c8bdb094f7b
Related
Tickets:
#1399