You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG.trace("Ignoring failed lookup for key {}", key);
returnLookupResult.builder()
.cacheTTL(0L)
.build();
}
if (isResultEmpty(result)) {
LOG.trace("Empty lookup for key {} with TTL {}", key, ttlEmptyMillis());
returnLookupResult.builder()
.cacheTTL(ttlEmptyMillis())
.build();
}
returnresult;
Error results have null values but are flagged as errors and come with custom TTL values. It looks like the code does not use that value and instead defaults to 0, "empty TTL" or forever.
The text was updated successfully, but these errors were encountered:
When debugging a customer issue, the below code looks like it doesn't properly take the error result case into account.
graylog2-server/graylog2-server/src/main/java/org/graylog2/lookup/caches/CaffeineLookupCache.java
Lines 161 to 174 in d1fab26
Error results have null values but are flagged as errors and come with custom TTL values. It looks like the code does not use that value and instead defaults to 0, "empty TTL" or forever.
The text was updated successfully, but these errors were encountered: