On 26/03/12 16:13, Bernie Greenberg wrote:
The new transaction primitives worked superlatively for me, but not for my
coworker testing my code.  As soon as he issued a query while updates were
going on, the latter crashed. mid-transaction.

Does dataset.begin/dataset.end provide, in addition to transaction safety,
thread synchronization/locking as well (as I imagine(d)), or must I wrap
Jena critical sections around each such pair if that is what I expect? (In
either case, the doc for begin/end should say).

Thanks,
Bernie


Bernie,

Do you have a test case or details of the crash?

Within a transaction all access must be multi-reader or single-writer. The normal pattern is one thread, one transaction.

http://incubator.apache.org/jena/documentation/tdb/tdb_transactions.html#multi-threaded_use

How is your coworker's testign using the transaction mechanism?

        Andy

Reply via email to