public boolean isCanceled() {
    return getQueryCanceledException() != null;
  }
Check to see if the query execution was canceled. The query gets canceled by the QueryMonitor
if it takes more than the max query execution time or low memory situations
geode-core/src/main/java/org/apache/geode/cache/query/internal/ExecutionContext.java