Commit 861f8f23 by nixonrodrigues

ATLAS-3764 : Set default value for atlas.graph.index.search.max-result-set-size…

ATLAS-3764 : Set default value for atlas.graph.index.search.max-result-set-size in Atlas ApplicationProperties
parent 25f3002e
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment