From 955709b3f3cb03d63a460f65b033d8e41e6c6076 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Thu, 19 Apr 2018 16:04:52 -0400 Subject: [PATCH] Account translog location to ram usage in version map This commit accounts a translog location's ram usage in version map. --- .../java/org/elasticsearch/index/engine/IndexVersionValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/engine/IndexVersionValue.java b/server/src/main/java/org/elasticsearch/index/engine/IndexVersionValue.java index 4f673729267..a658c84c16b 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/IndexVersionValue.java +++ b/server/src/main/java/org/elasticsearch/index/engine/IndexVersionValue.java @@ -37,7 +37,7 @@ final class IndexVersionValue extends VersionValue { @Override public long ramBytesUsed() { - return RAM_BYTES_USED; + return RAM_BYTES_USED + RamUsageEstimator.shallowSizeOf(translogLocation); } @Override