Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1658

tdb2.tdbstats leaves behind tdb.lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: Jena 3.8.0, Jena 3.9.0, Jena 3.10.0
    • Fix Version/s: None
    • Component/s: Cmd line tools, Fuseki, TDB2
    • Labels:
      None
    • Environment:

      Mac OS X 10.14.2 2.8 GHz Intel Core i7  16 GB 1600 MHz DDR3

      Description

      Running tdb2.tdbstats on an existing TDB2 db  leaves behind the tdb.lock file. Then if we try to start a fuseki-server using the same tdb directory it gives an error 

       

      org.apache.jena.assembler.exceptions.AssemblerException: caught: Unable to check TDB lock owner as the lock file contains invalid data
      doing:
      root: file:///my#tdb_dataset_readwrite with type: http://jena.hpl.hp.com/2008/tdb#DatasetTDB assembler class: class org.apache.jena.tdb.assembler.DatasetAssemblerTDB
      
      at org.apache.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.openBySpecificType(AssemblerGroup.java:165)
      at org.apache.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.open(AssemblerGroup.java:144)
      at org.apache.jena.assembler.assemblers.AssemblerGroup$ExpandingAssemblerGroup.open(AssemblerGroup.java:93)
      at org.apache.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase.java:39)
      at org.apache.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase.java:35)
      at org.apache.jena.fuseki.build.FusekiConfig.getDataset(FusekiConfig.java:345)
      at org.apache.jena.fuseki.build.FusekiConfig.buildDataService(FusekiConfig.java:299)
      ...
      ...
      
      Caused by: org.apache.jena.tdb.base.file.FileException: Unable to check TDB lock owner as the lock file contains invalid data
      at org.apache.jena.tdb.base.file.LocationLock.getOwner(LocationLock.java:111)
      at org.apache.jena.tdb.base.file.LocationLock.canObtain(LocationLock.java:130)
      at org.apache.jena.tdb.StoreConnection._makeAndCache(StoreConnection.java:267)
      at org.apache.jena.tdb.StoreConnection.make(StoreConnection.java:231)
      at org.apache.jena.tdb.StoreConnection.make(StoreConnection.java:245)
      at org.apache.jena.tdb.transaction.DatasetGraphTransaction.<init>(DatasetGraphTransaction.java:72)
      at org.apache.jena.tdb.sys.TDBMaker._create(TDBMaker.java:80)
      at org.apache.jena.tdb.sys.TDBMaker.createDatasetGraphTransaction(TDBMaker.java:44)
      at org.apache.jena.tdb.TDBFactory._createDatasetGraph(TDBFactory.java:89)
      at org.apache.jena.tdb.TDBFactory.createDatasetGraph(TDBFactory.java:71)
      at org.apache.jena.tdb.assembler.DatasetAssemblerTDB.make(DatasetAssemblerTDB.java:57)
      at org.apache.jena.tdb.assembler.DatasetAssemblerTDB.createDataset(DatasetAssemblerTDB.java:48)
      at org.apache.jena.sparql.core.assembler.DatasetAssembler.open(DatasetAssembler.java:43)
      at org.apache.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.openBySpecificType(AssemblerGroup.java:157)
      ... 41 more
      Caused by: java.lang.NumberFormatException: For input string: "41080
      "
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:580)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.apache.jena.tdb.base.file.LocationLock.getOwner(LocationLock.java:106)
      ... 54 more

        Attachments

          Activity

            People

            • Assignee:
              andy Andy Seaborne
              Reporter:
              amitkumar Amit Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: