smolnar82 commented on a change in pull request #438:
URL: https://github.com/apache/knox/pull/438#discussion_r621267069
##########
File path:
gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/TokenStateDatabase.java
##########
@@ -41,6 +48,33 @@
TokenStateDatabase(DataSource dataSource) throws Exception {
this.dataSource = dataSource;
+ createKnoxTokensTableIfNotExists();
+ }
+
+ private void createKnoxTokensTableIfNotExists() throws Exception {
Review comment:
The Knox Gateway won't start. IMO, this is correct since table creation
takes places only if token state service is explicitly set to JDBC and in this
case, it's a must that the table is created in the configured DB.
--
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]