From 03a0dcd2dfeea6942ed76ef3ae5933bff6f7d27a Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sat, 18 May 2019 16:15:31 +0200 Subject: [PATCH] Better explain display on timeout Bug: T223711 Change-Id: Ib1eafc44759a1d2b83f049ef3f4d4a83dc77b3fd --- .../java/com/bigdata/rdf/sail/webapp/QueryServlet.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bigdata-core/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/QueryServlet.java b/bigdata-core/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/QueryServlet.java index c38aac0cfc..5f1f43201e 100644 --- a/bigdata-core/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/QueryServlet.java +++ b/bigdata-core/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/QueryServlet.java @@ -1305,6 +1305,10 @@ static private void explainQuery(final String queryStr, } + // Flush parts that can be done without waiting for query to finish. + // Also open
 tag so if the exception happens we're getting nice backtrace.
+            w.write("
");
+            w.flush();
             try {
                 
                 /*
@@ -1338,7 +1342,9 @@ static private void explainQuery(final String queryStr,
                 // Fall through and paint the query stats table(s).
                 
             }
-            
+
+            w.write("
"); + w.flush(); current.node("h2", "Query Evaluation Statistics");