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

SampleCode fails on historical read with fullfeature.properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: BIGDATA_RELEASE_1_3_0
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None

      Description

      The SampleCode program under bigdata-sails/samples fails if you specify the fullfeature.properties file with the following exception. The failure occurs when attempting to demonstrate a historical read that has been pinned by a read-only transaction in order to prevent the aging out of the associated commit point from concurrent commits.

      WARN : 0      main com.bigdata.Banner.getBuildInfo(Banner.java:312): Not found: com.bigdata.BuildInfo
      
      BIGDATA(R)
      
                         Flexible
                         Reliable
                        Affordable
            Web-Scale Computing for the Enterprise
      
      Copyright SYSTAP, LLC 2006-2013.  All rights reserved.
      
      dmitriys-mbp.umh.edu
      Tue Apr 22 14:01:31 CDT 2014
      Mac OS X/10.9.2 x86_64
      Mac OS X 10.9.2 x86_64 #CPU=8
      Oracle Corporation 1.7.0_45
      freeMemory=246537808
      
      Dependency         License                                                       
      ICU                http://source.icu-project.org/repos/icu/icu/trunk/license.html
      bigdata-ganglia    http://www.apache.org/licenses/LICENSE-2.0.html               
      colt               http://acs.lbl.gov/software/colt/license.html                 
      commons-codec      http://www.apache.org/licenses/LICENSE-2.0.html               
      commons-fileupload http://www.apache.org/licenses/LICENSE-2.0.html               
      commons-io         http://www.apache.org/licenses/LICENSE-2.0.html               
      commons-logging    http://www.apache.org/licenses/LICENSE-2.0.html               
      dsiutils           http://www.gnu.org/licenses/lgpl-2.1.html                     
      fastutil           http://www.apache.org/licenses/LICENSE-2.0.html               
      flot               http://www.opensource.org/licenses/mit-license.php            
      high-scale-lib     http://creativecommons.org/licenses/publicdomain              
      httpclient         http://www.apache.org/licenses/LICENSE-2.0.html               
      httpclient-cache   http://www.apache.org/licenses/LICENSE-2.0.html               
      httpcore           http://www.apache.org/licenses/LICENSE-2.0.html               
      httpmime           http://www.apache.org/licenses/LICENSE-2.0.html               
      jetty              http://www.apache.org/licenses/LICENSE-2.0.html               
      jquery             https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt  
      log4j              http://www.apache.org/licenses/LICENSE-2.0.html               
      lucene             http://www.apache.org/licenses/LICENSE-2.0.html               
      nanohttp           http://elonen.iki.fi/code/nanohttpd/#license                  
      nxparser           http://sw.deri.org/2006/08/nxparser/license.txt               
      river              http://www.apache.org/licenses/LICENSE-2.0.html               
      servlet-api        http://www.apache.org/licenses/LICENSE-2.0.html               
      sesame             http://www.openrdf.org/download.jsp                           
      slf4j              http://www.slf4j.org/license.html                             
      zookeeper          http://www.apache.org/licenses/LICENSE-2.0.html               
      
      INFO: com.bigdata.util.config.LogUtil: Configure and watch: log4j.properties
      WARN : 402      main info.aduna.lang.service.ServiceRegistry.<init>(ServiceRegistry.java:47): New service class org.openrdf.rio.rdfxml.RDFXMLParserFactory replaces existing service class com.bigdata.rdf.rio.rdfxml.BigdataRDFXMLParserFactory
      WARN : 407      main info.aduna.lang.service.ServiceRegistry.<init>(ServiceRegistry.java:47): New service class org.openrdf.rio.rdfxml.RDFXMLWriterFactory replaces existing service class com.bigdata.rdf.rio.rdfxml.BigdataRDFXMLWriterFactory
      Loaded sample data.
      Did SELECT query.
      Did CONSTRUCT query.
      Did free text query.
      WARN : 3027      main org.openrdf.rio.helpers.ParseErrorLogger.warning(ParseErrorLogger.java:24): non-standard attribute 'bigdata:sid' (17, 41)
      Did provenance query.
      java.lang.RuntimeException: java.lang.RuntimeException: Could not instantiate relation: java.lang.reflect.InvocationTargetException
      at com.bigdata.rdf.sail.BigdataSail$BigdataSailReadOnlyConnection.newTx(BigdataSail.java:4155)
      at com.bigdata.rdf.sail.BigdataSail$BigdataSailReadOnlyConnection.<init>(BigdataSail.java:4022)
      at com.bigdata.rdf.sail.BigdataSail._getReadOnlyConnection(BigdataSail.java:1390)
      at com.bigdata.rdf.sail.BigdataSail.getReadOnlyConnection(BigdataSail.java:1365)
      at com.bigdata.rdf.sail.BigdataSailRepository.getReadOnlyConnection(BigdataSailRepository.java:82)
      at bigdata_samples.SampleCode.executeHistoricalQuery(SampleCode.java:444)
      at bigdata_samples.SampleCode.main(SampleCode.java:691)
      Caused by: java.lang.RuntimeException: Could not instantiate relation: java.lang.reflect.InvocationTargetException
      at com.bigdata.relation.locator.DefaultResourceLocator.newInstance(DefaultResourceLocator.java:982)
      at com.bigdata.relation.locator.DefaultResourceLocator.cacheMiss(DefaultResourceLocator.java:464)
      at com.bigdata.relation.locator.DefaultResourceLocator.locate(DefaultResourceLocator.java:333)
      at com.bigdata.rdf.sail.BigdataSail$BigdataSailReadOnlyConnection.newTx(BigdataSail.java:4142)
      ... 6 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at com.bigdata.relation.locator.DefaultResourceLocator.newInstance(DefaultResourceLocator.java:963)
      ... 9 more
      Caused by: java.lang.ClassCastException: com.bigdata.journal.TemporaryStore cannot be cast to com.bigdata.journal.Journal
      at com.bigdata.rdf.store.LocalTripleStore.<init>(LocalTripleStore.java:163)
      ... 14 more
      

      The failure appears when executing this method

                      sampleCode.executeHistoricalQuery(repo);
      

      This works fine for all of the other property files.

      The SampleCode should probably be modified to accept an optional command line argument for the property file. The code can then be executed during CI to verify that the SampleCode does not regress. The SampleCode exists under a different code path (not src/java nor src/test) so build.xml would have to be modified to compile and execute this during CI.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: