-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
All
-
Small
It seems that environment.getLastUpdated() returns always the date January 1st 1970, consequently, the cache is never cleared.
org.talend.sdk.component.runtime.server.vault.proxy.service.jcache.VaultProxyCacheResolver:
private void updateIfNeeded() { final Environment environment = client.path("environment").request(APPLICATION_JSON_TYPE).get(Environment.class); // assumes time are synch-ed but not a high assumption if (lastUpdated < environment.getLastUpdated().getTime()) { clearCaches(); lastUpdated = System.currentTimeMillis(); } }
See the attached screenshot.