Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one service can use the triple store at a time. #340

Open
rmathew1011 opened this issue Jul 31, 2023 · 0 comments
Open

Only one service can use the triple store at a time. #340

rmathew1011 opened this issue Jul 31, 2023 · 0 comments

Comments

@rmathew1011
Copy link

ERROR 68152 --- [task-scheduler1] o.s.s.s.TaskUtils$LoggingErrorHandler    : Unexpected error occurred in scheduled task

org.apache.jena.tdb.TDBException: Process ID 68152 can't open database at location /Users/rmathew/Documents/workspace/scholars/scholars-discovery/triplestore/ because it is already locked by the process with PID 67126. TDB databases do not permit concurrent usage across JVMs so in order to prevent possible data corruption you cannot open this location from the JVM that does not own the lock for the dataset
	at org.apache.jena.tdb.StoreConnection._makeAndCache(StoreConnection.java:282) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.StoreConnection.make(StoreConnection.java:244) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.StoreConnection.make(StoreConnection.java:258) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.transaction.DatasetGraphTransaction.<init>(DatasetGraphTransaction.java:69) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.sys.TDBMaker.createDirect(TDBMaker.java:126) ~[jena-tdb-3.17.0.jar:3.17.0]
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
	at org.apache.jena.tdb.sys.TDBMaker._create(TDBMaker.java:112) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.sys.TDBMaker.createDatasetGraphTransaction(TDBMaker.java:43) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.TDBFactory._createDatasetGraph(TDBFactory.java:93) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.TDBFactory.createDatasetGraph(TDBFactory.java:71) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.TDBFactory.createDataset(TDBFactory.java:55) ~[jena-tdb-3.17.0.jar:3.17.0]
	at org.apache.jena.tdb.TDBFactory.createDataset(TDBFactory.java:51) ~[jena-tdb-3.17.0.jar:3.17.0]
	at edu.tamu.scholars.middleware.service.TDBTriplestore.init(TDBTriplestore.java:39) ~[classes/:na]
	at edu.tamu.scholars.middleware.discovery.service.IndexService.index(IndexService.java:177) ~[classes/:na]
	at edu.tamu.scholars.middleware.discovery.service.IndexService$1.run(IndexService.java:167) ~[classes/:na]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant