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

DumpJournal fails on non-BTree/HTree classes

    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: Journal
    • Labels:
      None

      Description

      DumpJournal -pages fails on a journal containing non-BTree/HTree resources. In this case, it failed on a SolutionSetStream.

      java.lang.UnsupportedOperationException
              at com.bigdata.btree.Checkpoint.getHeight(Checkpoint.java:124)
              at com.bigdata.btree.BaseIndexStats.<init>(BaseIndexStats.java:101)
              at com.bigdata.bop.solutions.SolutionSetStream.dumpPages(SolutionSetStream.java:464)
              at com.bigdata.journal.DumpJournal.dumpNamedIndicesMetadata(DumpJournal.java:763)
              at com.bigdata.journal.DumpJournal.dumpJournal(DumpJournal.java:616)
              at com.bigdata.journal.DumpJournal.main(DumpJournal.java:286)
      Error: java.lang.UnsupportedOperationException on file: blazegraph.jnl
      

      The relevant code block is:

                  {
      
                     final BaseIndexStats stats = ndx.dumpPages(
                           dumpPages/* recursive */, dumpPages/* visitLeaves */); // <== THIS LINE IS FAILING
      
                      out.println("\t" + stats);
      
                      pageStats.put(name, stats);
      
                      if (dumpIndices) {
      
                          if (ndx instanceof AbstractBTree) {
                          
                              /*
                               * TODO GIST : dumpTuples for HTree.
                               */
                              
                              DumpIndex.dumpIndex((AbstractBTree) ndx, showTuples);
                              
                          }
      
                      }
      
                  }
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: