From 6f0b4d90d8640328daf6ed72fbc3e2d28f7e4925 Mon Sep 17 00:00:00 2001 From: Clint Wylie Date: Wed, 5 May 2021 02:44:04 -0700 Subject: [PATCH] clarify that appenderator persist byte sizes are estimations (#11198) --- .../druid/segment/realtime/appenderator/AppenderatorImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorImpl.java b/server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorImpl.java index 6f98817030e..7852500c7b8 100644 --- a/server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorImpl.java +++ b/server/src/main/java/org/apache/druid/segment/realtime/appenderator/AppenderatorImpl.java @@ -323,7 +323,7 @@ public class AppenderatorImpl implements Appenderator if (bytesCurrentlyInMemory.get() >= maxBytesTuningConfig) { persist = true; persistReasons.add(StringUtils.format( - "bytesCurrentlyInMemory[%d] is greater than maxBytesInMemory[%d]", + "(estimated) bytesCurrentlyInMemory[%d] is greater than maxBytesInMemory[%d]", bytesCurrentlyInMemory.get(), maxBytesTuningConfig )); @@ -669,7 +669,7 @@ public class AppenderatorImpl implements Appenderator rowsCurrentlyInMemory.addAndGet(-numPersistedRows); bytesCurrentlyInMemory.addAndGet(-bytesPersisted); - log.info("Persisted rows[%,d] and bytes[%,d]", numPersistedRows, bytesPersisted); + log.info("Persisted rows[%,d] and (estimated) bytes[%,d]", numPersistedRows, bytesPersisted); return future; }