You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2020/04/30 06:15:33 UTC

[atlas] branch master updated: ATLAS-3764 : Set default value for atlas.graph.index.search.max-result-set-size in Atlas ApplicationProperties

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

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 861f8f2  ATLAS-3764 : Set default value for atlas.graph.index.search.max-result-set-size in Atlas ApplicationProperties
861f8f2 is described below

commit 861f8f23bc086fa8be0ebee82848dd2c883acdb0
Author: nixonrodrigues <ni...@apache.org>
AuthorDate: Wed Apr 29 19:15:21 2020 +0530

    ATLAS-3764 : Set default value for atlas.graph.index.search.max-result-set-size in Atlas ApplicationProperties
---
 intg/src/main/java/org/apache/atlas/ApplicationProperties.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/intg/src/main/java/org/apache/atlas/ApplicationProperties.java b/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
index 1f1f377..c419233 100644
--- a/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
+++ b/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
@@ -65,6 +65,7 @@ public final class ApplicationProperties extends PropertiesConfiguration {
     public static final boolean DEFAULT_SOLR_WAIT_SEARCHER      = true;
     public static final boolean DEFAULT_INDEX_MAP_NAME          = false;
     public static final AtlasRunMode DEFAULT_ATLAS_RUN_MODE     = AtlasRunMode.PROD;
+    public static final String INDEX_SEARCH_MAX_RESULT_SET_SIZE = "atlas.graph.index.search.max-result-set-size";
 
     public static final SimpleEntry<String, String> DB_CACHE_CONF               = new SimpleEntry<>("atlas.graph.cache.db-cache", "true");
     public static final SimpleEntry<String, String> DB_CACHE_CLEAN_WAIT_CONF    = new SimpleEntry<>("atlas.graph.cache.db-cache-clean-wait", "20");
@@ -354,6 +355,14 @@ public final class ApplicationProperties extends PropertiesConfiguration {
             }
         }
 
+        // setting value for 'atlas.graph.index.search.max-result-set-size' (default = 2147483647)
+        int indexMaxResultSetSize = getInt(INDEX_SEARCH_MAX_RESULT_SET_SIZE, Integer.MAX_VALUE);
+
+        clearPropertyDirect(INDEX_SEARCH_MAX_RESULT_SET_SIZE);
+        addPropertyDirect(INDEX_SEARCH_MAX_RESULT_SET_SIZE, indexMaxResultSetSize);
+
+        LOG.info("Setting " + INDEX_SEARCH_MAX_RESULT_SET_SIZE + " = " + indexMaxResultSetSize);
+
         setDbCacheConfDefaults();
     }