nabarun created GEODE-5034: ------------------------------ Summary: Query Monitors are not set even if the timeout is set to 0 Key: GEODE-5034 URL: https://issues.apache.org/jira/browse/GEODE-5034 Project: Geode Issue Type: Bug Components: docs Reporter: nabarun
In the section "Monitoring Queries for Low Memory" it is stated that {noformat} When the query memory monitoring feature is on, the default query time out is set to five hours. You can override this value by setting a larger or smaller, non -1 value to the existing query time out system variable {{gemfire.cache.MAX_QUERY_EXECUTION_TIME}}. {noformat} But when we look at the code {code:java} public QueryMonitor getQueryMonitor() { // Check to see if monitor is required if ResourceManager critical heap percentage is set // or whether we override it with the system variable; boolean monitorRequired = !this.queryMonitorDisabledForLowMem && queryMonitorRequiredForResourceManager; // Added for DUnit test purpose, which turns-on and off the this.testMaxQueryExecutionTime. if (!(MAX_QUERY_EXECUTION_TIME > 0 || monitorRequired)) { // if this.testMaxQueryExecutionTime is set, send the QueryMonitor. // Else send null, so that the QueryMonitor is turned-off. return null; }{code} We can see that the monitor is returned as null when the timeout is set to a non positive numeral. -- This message was sent by Atlassian JIRA (v7.6.3#76005)