You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Amit Kumar (JIRA)" <ji...@apache.org> on 2019/01/11 19:31:00 UTC

[jira] [Created] (JENA-1658) tdb2.tdbstats leaves behind tdb.lock

Amit Kumar created JENA-1658:
--------------------------------

             Summary: tdb2.tdbstats  leaves behind tdb.lock 
                 Key: JENA-1658
                 URL: https://issues.apache.org/jira/browse/JENA-1658
             Project: Apache Jena
          Issue Type: Bug
          Components: Cmd line tools, Fuseki, TDB2
    Affects Versions: Jena 3.10.0, Jena 3.9.0, Jena 3.8.0
         Environment: Mac OS X 10.14.2 2.8 GHz Intel Core i7  16 GB 1600 MHz DDR3
            Reporter: Amit Kumar


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

 
{code:java}
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{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)