You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by "Duansg (via GitHub)" <gi...@apache.org> on 2026/09/24 06:18:05 UTC
[PR] GH-3431: Ignore incomplete compaction directories when finding TDB2 storage [jena]
Duansg opened a new pull request, #4257:
URL: https://github.com/apache/jena/pull/4257
GitHub issue resolved #3431
Pull request Description:
If a TDB2 compaction is interrupted (e.g. the process is killed), a `Data-NNNN-tmp` directory is left in the database directory. It is cleaned up when the database is connected, but `DatabaseOps.findStorageLocation` is called earlier by Fuseki (`DSGSetup` → `TDBOps.isTDB2` → `SpotTDB2`) and throws `DBOpEnvException: Invalid filename for matching: Data-0002-tmp`, so Fuseki fails to start.
This change makes `scanForDirByPattern` skip compaction temporary directories (`Data-NNNN-tmp`). Other unexpected `Data*` names still raise an error.
Added `TestDatabaseCompact.compact_recovery_2`, which fails without the fix. All `jena-tdb2` tests pass.
----
- [x] Tests are included.
- [ ] Documentation change and updates are provided for the [Apache Jena website](https://github.com/apache/jena-site/)
- [x] Commits have been squashed to remove intermediate development commit messages.
- [x] Key commit messages start with the issue number (GH-xxxx)
By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the [Contributor's Agreement](https://www.apache.org/licenses/contributor-agreements.html).
----
See the [Apache Jena "Contributing" guide](https://github.com/apache/jena/blob/main/CONTRIBUTING.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org