You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by bh...@apache.org on 2019/06/17 05:00:48 UTC

[hadoop] branch trunk updated: HDDS-1692. RDBTable#iterator should disabled caching of the keys during iterator. (#975)

This is an automated email from the ASF dual-hosted git repository.

bharat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ba681bb  HDDS-1692. RDBTable#iterator should disabled caching of the keys during iterator. (#975)
ba681bb is described below

commit ba681bb80ef246e937bf0ddc11bd22327feb1c3c
Author: Bharat Viswanadham <bh...@apache.org>
AuthorDate: Sun Jun 16 22:00:39 2019 -0700

    HDDS-1692. RDBTable#iterator should disabled caching of the keys during iterator. (#975)
---
 .../common/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 4213e2b..4347917 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 @@ class RDBTable implements Table<byte[], byte[]> {
   @Override
   public TableIterator<byte[], ByteArrayKeyValue> iterator() {
     ReadOptions readOptions = new ReadOptions();
+    readOptions.setFillCache(false);
     return new RDBStoreIterator(db.newIterator(handle, readOptions));
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org