You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/08 10:52:00 UTC

[jira] [Work logged] (KNOX-2618) Need to add INFO level eviction logs for debugging

     [ https://issues.apache.org/jira/browse/KNOX-2618?focusedWorklogId=608388&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-608388 ]

ASF GitHub Bot logged work on KNOX-2618:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Jun/21 10:51
            Start Date: 08/Jun/21 10:51
    Worklog Time Spent: 10m 
      Work Description: smolnar82 opened a new pull request #455:
URL: https://github.com/apache/knox/pull/455


   ## What changes were proposed in this pull request?
   
   Instead of logging the number of expired tokens removed from the DB at `DEBUG` level, Knox logs the 
   
   ## How was this patch tested?
   
   Tested manually:
   ```
   2021-06-08 12:45:54,837 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...sHsZgg (ab56217a...aa2afedee2bc)
   2021-06-08 12:45:56,445 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...qC7Kag (99212174...e50a90ccffa5)
   2021-06-08 12:45:57,793 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...WG117A (9bf33980...be4eb1ac08dc)
   2021-06-08 12:45:58,925 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...RC_BwQ (895a34a8...69d0574a7324)
   2021-06-08 12:45:59,887 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...qZUNtw (65bf1dfa...b52853a1053f)
   2021-06-08 12:46:00,754 INFO  service.knoxtoken (TokenResource.java:getAuthenticationToken(570)) - Knox Token service (homepage) issued token eyJqa3...RnkKRA (3a7824b7...a37942c02ce9)
   ...
   2021-06-08 12:47:09,483 INFO  token.state (JDBCTokenStateService.java:evictExpiredTokens(218)) - Removing 6 expired token(s) from the database: 895a34a8...69d0574a7324, ab56217a...aa2afedee2bc, 3a7824b7...a37942c02ce9, 65bf1dfa...b52853a1053f, 99212174...e50a90ccffa5, 9bf33980...be4eb1ac08dc
   2021-06-08 12:47:09,491 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 3a7824b7...a37942c02ce9
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 895a34a8...69d0574a7324
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token ab56217a...aa2afedee2bc
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 99212174...e50a90ccffa5
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 9bf33980...be4eb1ac08dc
   2021-06-08 12:47:09,492 INFO  token.state (DefaultTokenStateService.java:getExpiredTokens(372)) - Evicting expired token 65bf1dfa...b52853a1053f
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 608388)
    Remaining Estimate: 0h
            Time Spent: 10m

> Need to add INFO level eviction logs for debugging
> --------------------------------------------------
>
>                 Key: KNOX-2618
>                 URL: https://issues.apache.org/jira/browse/KNOX-2618
>             Project: Apache Knox
>          Issue Type: Improvement
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It would be helpful if there was INFO level eviction logs for debugging purposes (just like there is INFO logs when a token is created/renewed/expired).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)