[OPENAM-4614] MergeAll Option cause a desynchronisation of the log rotation Created: 07/Oct/14 Updated: 20/Nov/16 Resolved: 05/Jan/15 |
|
Status: | Resolved |
Project: | OpenAM |
Component/s: | audit logging |
Affects Version/s: | 10.0.0, 10.0.1, 10.0.2, 11.0.0, 11.0.1, 11.0.2 |
Fix Version/s: | 11.0.3, 12.0.1, 13.0.0 |
Type: | Bug | Priority: | Minor |
Reporter: | Quentin CASTEL [X] (Inactive) | Assignee: | Quentin CASTEL [X] (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Labels: | release-notes | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() |
||||||||
Issue Links: |
|
||||||||
Support Ticket IDs: | |||||||||
Verified Version/s: |
Description |
The mergeAll option allows to create two Debug instance controlling the same file. A correction will be to avoid the possibility to have two (or more) Debug instance if the mergeAll option is used. The DebugProvider is a good place for doing that : it can check the mergeAll options and return the same Debug instance if the mergeAll option is ON. |
Comments |
Comment by Quentin CASTEL [X] (Inactive) [ 07/Oct/14 ] |
The java class used to produce the bug |
Comment by Quentin CASTEL [X] (Inactive) [ 10/Oct/14 ] |
"A correction will be to avoid the possibility to have two (or more) Debug instance if the mergeAll option is used. The DebugProvider is a good place for doing that : it can check the mergeAll options and return the same Debug instance if the mergeAll option is ON." My suggestion isn't working as some local variable are dedicated to debug instance. A short part of the content of debugfiles.properties : which mean we want amAuthConfig and amAuthContext to be redirected to Authentication IDebug A = Debug.getInstance("amAuthConfig"); So A and B will print theirs logs in "Authentication" Our issue is that A and B have a different value for "lastRotation". (see jiraBugDebug.jpg for explication) A possible way of resolution is to split the Debug class in two and transfert the file management into another class. "debugLevel" will stay on DebugImpl and "lastRotation" will go the new class created. |
Comment by Quentin CASTEL [X] (Inactive) [ 05/Jan/15 ] |
added to 13.0.0 in r11910 |
Comment by Quentin CASTEL [X] (Inactive) [ 05/Jan/15 ] |
added to 11.0.3 in r12025 |