[ASTERIXDB-1706][API] Additional logging for debug
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
This is just another log, similar to the response size one
already merged, to try to nail down the true source of this
issue. The previous logs point to the issue being somewhere
besides result distribution.
Change-Id: Ie377e531688ecf715ef822ed0fb027ee124fc976
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1929
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
diff --git a/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java b/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java
index 1c30991..64be051 100644
--- a/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java
+++ b/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java
@@ -21,6 +21,8 @@
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import org.apache.hyracks.http.api.IServletResponse;
@@ -58,6 +60,8 @@
* 4. larger than chunkSize, no error. -> header, data, empty response
*/
public class ChunkedResponse implements IServletResponse {
+
+ private static final Logger LOGGER = Logger.getLogger(ChunkedResponse.class.getName());
private final ChannelHandlerContext ctx;
private final ChunkedNettyOutputStream outputStream;
private final PrintWriter writer;
@@ -109,6 +113,7 @@
} else {
// There was an error
if (headerSent) {
+ LOGGER.log(Level.WARNING,"Error after header write of chunked response");
if (error != null) {
error.release();
}