hanicz commented on code in PR #1422:
URL: https://github.com/apache/knox/pull/1422#discussion_r4081960390
##########
gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/JDBCTokenStateService.java:
##########
@@ -119,6 +121,9 @@ public void addToken(String tokenId, long issueTime, long
expiration, long maxLi
}
} catch (SQLException e) {
log.errorSavingTokenInDatabase(Tokens.getTokenIDDisplayText(tokenId),
e.getMessage(), e);
+ if (JDBCUtils.isUniqueConstraintViolation(e)) {
Review Comment:
nit: I would only fire a WARN log message here and only log the error if its
not a unique constraint violation
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]