Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1175

SPARQL UPDATE "MONITOR" LIVENESS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed - Won't Fix
    • Resolution: Cannot Reproduce
    • Affects Version/s: BIGDATA_RELEASE_1_5_0
    • Fix Version/s: None
    • Component/s: B+Tree
    • Labels:
      None

      Description

      The monitor option for SPARQL UPDATE requests current relies on flushing the response. However, the semantics of flushing the Servlet response is that the http response is committed. This is not the desired operation and, now that we have jetty on both the client and the server, it is resulting in an EofException from jetty (on the server side).

      ERROR: 4388360 2015-03-02 16:08:46,600   com.bigdata.rdf.task.ApiTaskForJournal 0  com.bigdata.rdf.sail.webapp.BigdataRDFContext.queryService1 com.bigdata.rdf.sail.BigdataSail$BigdataSailConnection.fireEvent(BigdataSail.java:4072): java.lang.RuntimeException: org.eclipse.jetty.io.EofException
      java.lang.RuntimeException: org.eclipse.jetty.io.EofException
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$SparqlUpdateResponseWriter.updateEvent(BigdataRDFContext.java:1976)
      	at com.bigdata.rdf.sail.BigdataSail$BigdataSailConnection.fireEvent(BigdataSail.java:4060)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate$AddStatementHandler.handleStatement(AST2BOpUpdate.java:1615)
      	at org.openrdf.rio.ntriples.NTriplesParser.parseTriple(NTriplesParser.java:319)
      	at org.openrdf.rio.ntriples.NTriplesParser.parse(NTriplesParser.java:193)
      	at org.openrdf.rio.ntriples.NTriplesParser.parse(NTriplesParser.java:132)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.doLoad(AST2BOpUpdate.java:1541)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertLoadGraph(AST2BOpUpdate.java:1298)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertUpdateSwitch(AST2BOpUpdate.java:414)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertUpdate(AST2BOpUpdate.java:279)
      	at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.executeUpdate(ASTEvalHelper.java:1295)
      	at com.bigdata.rdf.sail.BigdataSailUpdate.execute2(BigdataSailUpdate.java:152)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$UpdateTask.doQuery(BigdataRDFContext.java:1669)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.innerCall(BigdataRDFContext.java:1309)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1274)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:516)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: org.eclipse.jetty.io.EofException
      	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:192)
      	at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:337)
      	at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:128)
      	at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:646)
      	at org.eclipse.jetty.util.IteratingCallback.processIterations(IteratingCallback.java:233)
      	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:193)
      	at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:457)
      	at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:769)
      	at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:802)
      	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:139)
      	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:132)
      	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:347)
      	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
      	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
      	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
      	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
      	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$SparqlUpdateResponseWriter.updateEvent(BigdataRDFContext.java:1963)
      	... 20 more
      Caused by: java.io.IOException: Broken pipe
      	at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
      	at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
      	at sun.nio.ch.IOUtil.write(IOUtil.java:149)
      	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:499)
      	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:172)
      	... 37 more
      

        Attachments

          Activity

            People

            Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: