From ba681bb80ef246e937bf0ddc11bd22327feb1c3c Mon Sep 17 00:00:00 2001 From: Bharat Viswanadham Date: Sun, 16 Jun 2019 22:00:39 -0700 Subject: [PATCH] HDDS-1692. RDBTable#iterator should disabled caching of the keys during iterator. (#975) --- .../src/main/java/org/apache/hadoop/utils/db/RDBTable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java index 4213e2baac..43479179d2 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java @@ -162,6 +162,7 @@ public void deleteWithBatch(BatchOperation batch, byte[] key) @Override public TableIterator iterator() { ReadOptions readOptions = new ReadOptions(); + readOptions.setFillCache(false); return new RDBStoreIterator(db.newIterator(handle, readOptions)); }