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

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

                Author: ASF GitHub Bot
            Created on: 26/Apr/21 20:07
            Start Date: 26/Apr/21 20:07
    Worklog Time Spent: 10m 
      Work Description: smolnar82 opened a new pull request #438:
URL: https://github.com/apache/knox/pull/438


   ## What changes were proposed in this pull request?
   
   Instead of relying on that `KNOX_TOKENS` is being created externally, we do 
create that table as part of `JDBCTokenStateService` init if the table does not 
exist.
   
   ## How was this patch tested?
   
   Updated JUnit tests (removed table creation) so that the Derby path is 
tested.
   I ran manual testing against a PostgreSQL instance and started/stopped the 
server several times. Between these operations, I dropped the table + created 
tokens and confirmed the outcome matches my expectations.


-- 
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:
[email protected]


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

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

> Create KNOX_TOKENS table if not exists
> --------------------------------------
>
>                 Key: KNOX-2595
>                 URL: https://issues.apache.org/jira/browse/KNOX-2595
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 1.6.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The new JDBCTokenStateService implementation relies on the fact that the 
> KNOX_TOKENS data table is created before the service gets used.
> The scope of this Jira is to create that table if it's not yet existed for 
> the configured user/schema.



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

Reply via email to