moresandeep commented on a change in pull request #447:
URL: https://github.com/apache/knox/pull/447#discussion_r626109820



##########
File path: 
gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/JDBCTokenStateService.java
##########
@@ -193,8 +194,17 @@ protected void evictExpiredTokens() {
 
   @Override
   public void addMetadata(String tokenId, TokenMetadata metadata) {
+
     try {
-      final boolean added = tokenDatabase.addMetadata(tokenId, metadata);
+      boolean added = false;

Review comment:
       Chance of running into concurrency issue here with the flag.




-- 
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]


Reply via email to