[ https://issues.apache.org/jira/browse/DRILL-6591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16543517#comment-16543517 ]
ASF GitHub Bot commented on DRILL-6591: --------------------------------------- arina-ielchiieva commented on a change in pull request #1379: DRILL-6591: Show Exception for failed queries submitted in WebUI URL: https://github.com/apache/drill/pull/1379#discussion_r202427605 ########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/QueryWrapper.java ########## @@ -97,21 +97,22 @@ public QueryResult run(final WorkManager workManager, final WebUserConnection we //Fail if nearly out of heap space if (nearlyOutOfHeapSpace) { + UserException almostOutOfHeapException = UserException.resourceError() + .message("There is not enough heap memory to run this query using the web interface. ") + .addContext("Please try a query with fewer columns or with a filter or limit condition to limit the data returned. ") + .addContext("You can also try an ODBC/JDBC client. ") + .build(logger); + //Add event workManager.getBee().getForemanForQueryId(queryId) - .addToEventQueue(QueryState.FAILED, - UserException.resourceError( - new Throwable( - "There is not enough heap memory to run this query using the web interface. " - + "Please try a query with fewer columns or with a filter or limit condition to limit the data returned. " - + "You can also try an ODBC/JDBC client. " - ) - ) - .build(logger) - ); + .addToEventQueue(QueryState.FAILED, almostOutOfHeapException); + //Return NearlyOutOfHeap exception + throw almostOutOfHeapException; Review comment: We did not throw exception before, why we are throwing it now? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > When query fails on Web UI, result page does not show any error > --------------------------------------------------------------- > > Key: DRILL-6591 > URL: https://issues.apache.org/jira/browse/DRILL-6591 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.13.0 > Reporter: Arina Ielchiieva > Assignee: Kunal Khatua > Priority: Major > Fix For: 1.14.0 > > Attachments: no_result_found.JPG > > > When query fails on Web UI result page no error is shown, only "No result > found." Screenshot attached. Drill should display error message instead. -- This message was sent by Atlassian JIRA (v7.6.3#76005)