[Performance] Omit call to log.debug in hot code path ManagedLedgerImpl.doCacheEviction
@@ -149,8 +149,10 @@ public class EntryCacheImpl implements EntryCache {
final PositionImpl firstPosition = PositionImpl.get(-1, 0);
if (firstPosition.compareTo(lastPosition) > 0) {
+ if (log.isDebugEnabled()) {
log.debug("Attempted to invalidate entries in an invalid range : {} ~ {}",
firstPosition, lastPosition);
+ }
return;
}
