Skip to content

Commit

Permalink
fix comparison with the expiration time (delta-io#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db authored Dec 20, 2022
1 parent 52ca2fb commit 67e922f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class CachedTableManager(
} catch {
case NonFatal(e) =>
logError(s"Failed to refresh pre signed urls for table $tablePath", e)
if (cachedTable.expiration > System.currentTimeMillis()) {
if (cachedTable.expiration < System.currentTimeMillis()) {
logInfo(s"Removing table $tablePath form cache as the pre signed url have expired")
// Remove the cached table as pre signed urls have expired
cache.remove(tablePath, cachedTable)
Expand Down

0 comments on commit 67e922f

Please sign in to comment.