GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/414
JENA-1542: Integrate Lucene index in transaction lifecycle (TDB1, TDB2).
Includes the fix for JENA-1302.
Integrate a lucene text index into the transaction systems for TDB1 and
DBOE/TDB2. This way, the prepare/commit for Lucene happens during database
commit and the synchronization dance (JENA-1302) does not happen.
JENA-1302 only effects TDB1, not TDB2. Only TDB1 has a commit queue that
can build up under load and need to be flushed, which in turn causes a thread
to take the exclusive lock and so cause the JENA-1302 lockup.
Includes the fix for JENA-1302.
Integrate a Lucene text index into the transaction systems for TDB1 and
DBOE/TDB2. This way, the prepare/commit for Lucene happens during database
commit and the synchronization dance (JENA-1302) does not happen.
JENA-1302 only effects TDB1, not TDB2 or any other DatasetGraph
implementation. Only TDB1 has a commit queue that can build up under load and
need to be flushed, which in turn causes a thread to take the exclusive lock
and so cause the JENA-1302 lockup.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena text-txn
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/414.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #414
----
commit 39f14a1f5030424e093af26d465e9add39cc5209
Author: Andy Seaborne <andy@...>
Date: 2018-05-04T15:12:28Z
Remove false check. 'destination' can null if services are URLs.
commit f6844797aa639e0fe44f2c77c24a622673247c74
Author: Andy Seaborne <andy@...>
Date: 2018-05-04T15:56:00Z
Constructor for detailed setup.
commit 06f713d9d11b15bb55858ca778d31496da89daec
Author: Andy Seaborne <andy@...>
Date: 2018-05-04T16:05:53Z
JENA-1542: Add JenaLifecycle elements to an existing TransactionManager
Clearup the JenaLifecycle phases:
* add a post-commit step
* rename the write-back steps
commit 27ad5b74d8322d35e203cab41024f32a7b0eda24
Author: Andy Seaborne <andy@...>
Date: 2018-05-04T16:06:54Z
JENA-1542: Allow TransactionComponents to be added.
commit 2d6330f4712c26390213861f3891126f1ae69e2d
Author: Andy Seaborne <andy@...>
Date: 2018-05-06T13:24:45Z
JENA-1542, JENA-1302: Integrate jena-text with TDB1 and TDB2 transactions.
----
---