JingsongLi commented on code in PR #5504:
URL: https://github.com/apache/paimon/pull/5504#discussion_r2053275037


##########
paimon-core/src/main/java/org/apache/paimon/rest/RESTTokenFileIO.java:
##########
@@ -186,10 +191,11 @@ private void tryToRefreshToken() {
     }
 
     private boolean shouldRefresh() {
-        return token == null || System.currentTimeMillis() > 
token.expireAtMillis();
+        return token == null || token.expireAtMillis() - 
System.currentTimeMillis() < 3600_000L;
     }
 
     private void refreshToken() {
+        LOG.info("begin refresh token for identifier [{}]", identifier);

Review Comment:
   log expire time after refreshing



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

Reply via email to