This is an automated email from the ASF dual-hosted git repository.
nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new a3bb6a9 ATLAS-3764 : Set default value for
atlas.graph.index.search.max-result-set-size in Atlas ApplicationProperties
a3bb6a9 is described below
commit a3bb6a959c15fc7aa72acccec8b9e61d0c882659
Author: nixonrodrigues <[email protected]>
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
(cherry picked from commit 861f8f23bc086fa8be0ebee82848dd2c883acdb0)
---
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();
}