Repository: ignite Updated Branches: refs/heads/ignite-1.5 baab3d2b6 -> e6f6f407e
IGNITE-1947 More info about why query was not found in error message. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e6f6f407 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e6f6f407 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e6f6f407 Branch: refs/heads/ignite-1.5 Commit: e6f6f407ef4f0c3555fd80fe5ba328739d94e3f0 Parents: baab3d2 Author: Alexey Kuznetsov <akuznet...@apache.org> Authored: Fri Dec 4 15:14:49 2015 +0700 Committer: Alexey Kuznetsov <akuznet...@apache.org> Committed: Fri Dec 4 15:14:49 2015 +0700 ---------------------------------------------------------------------- .../processors/rest/handlers/query/QueryCommandHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/e6f6f407/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java index bb929a4..0c44077 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java @@ -443,14 +443,16 @@ public class QueryCommandHandler extends GridRestCommandHandlerAdapter { if (qryCurIt == null) return new GridRestResponse(GridRestResponse.STATUS_FAILED, - "Failed to find query with ID: " + req.queryId()); + "Failed to find query with ID: " + req.queryId() + ". " + + "Possible reasons: wrong query ID, no more data to fetch from query, query was closed by timeout" + + " or node where query was executed is not found."); qryCurIt.lock(); try { if (qryCurIt.timestamp() == -1) return new GridRestResponse(GridRestResponse.STATUS_FAILED, - "Query is closed by timeout. Restart query with ID: " + req.queryId()); + "Query with ID: " + req.queryId() + " was closed by timeout"); qryCurIt.timestamp(U.currentTimeMillis());