mirror of https://github.com/apache/druid.git
clarify that appenderator persist byte sizes are estimations (#11198)
This commit is contained in:
parent
99f39c7202
commit
6f0b4d90d8
|
@ -323,7 +323,7 @@ public class AppenderatorImpl implements Appenderator
|
||||||
if (bytesCurrentlyInMemory.get() >= maxBytesTuningConfig) {
|
if (bytesCurrentlyInMemory.get() >= maxBytesTuningConfig) {
|
||||||
persist = true;
|
persist = true;
|
||||||
persistReasons.add(StringUtils.format(
|
persistReasons.add(StringUtils.format(
|
||||||
"bytesCurrentlyInMemory[%d] is greater than maxBytesInMemory[%d]",
|
"(estimated) bytesCurrentlyInMemory[%d] is greater than maxBytesInMemory[%d]",
|
||||||
bytesCurrentlyInMemory.get(),
|
bytesCurrentlyInMemory.get(),
|
||||||
maxBytesTuningConfig
|
maxBytesTuningConfig
|
||||||
));
|
));
|
||||||
|
@ -669,7 +669,7 @@ public class AppenderatorImpl implements Appenderator
|
||||||
rowsCurrentlyInMemory.addAndGet(-numPersistedRows);
|
rowsCurrentlyInMemory.addAndGet(-numPersistedRows);
|
||||||
bytesCurrentlyInMemory.addAndGet(-bytesPersisted);
|
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;
|
return future;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue