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

BigdataSailRemoteRepository uses non-daemon thread pool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: BLAZEGRAPH_RELEASE_1_5_1
    • Fix Version/s: BLAZEGRAPH_RELEASE_1_5_2
    • Component/s: B+Tree
    • Labels:
      None

      Description

      Potential reason:?BigdataSailRemoteRepository creates ExecutionService with default
      thread factory, which creates thread, not marked as daemon. For some reason
      graph.shutdown() does not result in termination of executor threads.

      public static void main(String[] args) throws IOException, RepositoryException {
      final BigdataGraph graph = new BigdataGraphClient("http://localhost:9999/bigdata")?
      final String testFile = "/graph?example?1.xml"?
      GraphMLReader.inputGraph(graph,
      RemoteBlueprint.class.getResourceAsStream(testFile))?
      for (Vertex v : graph.getVertices()) {
      System.err.println(v)?
      }
      for (Edge e : graph.getEdges()) {
      System.err.println(e)?
      }
      graph.shutdown()?
      }
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: