question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fuseki compact through java code

See original GitHub issue

I’m on version 4.3.2 through docker secoresearch/fuseki and have a dataset with name ‘/fedora’. The database is growing like crazy after deletes and posts of the same element.

So I have understood I need to proactively compact the database, like described here: https://jena.apache.org/documentation/tdb2/tdb2_admin.html#compaction

DatabaseMgr.compact(dataSet.asDatasetGraph(), true);

But how to I get to the first parameter, dataSet? I have a RDFConnection object initialized with username/password.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:33 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
afscommented, Jul 17, 2022

I think I have identified the problem - an update during the compaction can cause the transaction coordinator to block. It is a deadlock - no amount of waiting will cause the system to unblock.

1reaction
kdejaegercommented, Apr 25, 2022

I don’t know unfortunately. We’ll add a backup command before the compact command, to be safe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jena/TestFusekiMainCmd.java at main · apache/jena · GitHub
jena /jena-fuseki2/jena-fuseki-main/src/test/java/org/apache/jena/fuseki/main/TestFusekiMainCmd.java · Go to file T · Go to line L · Copy path · Copy permalink.
Read more >
Configuring Fuseki - Apache Jena
A Fuseki server is configured by defining the data services (data and actions available ... The command line, using --conf to provide a...
Read more >
org.apache.jena.fuseki.main.FusekiServer java code examples
Embedded Fuseki server. This is a Fuseki server running with a pre-configured set of datasets and services. There is no admin UI and...
Read more >
Fuseki compact through java code - Issues Antenna
Fuseki compact through java code. I'm on version 4.3.2 through docker secoresearch/fuseki and have a dataset with name '/fedora'.
Read more >
[GitHub] [jena] kdejaeger commented on issue #1252: Fuseki ...
... kdejaeger commented on issue #1252: Fuseki compact through java code ... So yes, other part of our code that read or write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found