You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2021/04/10 14:01:00 UTC

[jira] [Updated] (JENA-2086) TDB2: read transactions sync the journal.

     [ https://issues.apache.org/jira/browse/JENA-2086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-2086:
--------------------------------
    Attachment: jena-sync-overhead.png

> TDB2: read transactions sync the journal.
> -----------------------------------------
>
>                 Key: JENA-2086
>                 URL: https://issues.apache.org/jira/browse/JENA-2086
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: TDB2
>    Affects Versions: Jena 3.17.0, Jena 4.0.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>         Attachments: jena-sync-overhead.png
>
>
> [Report from users@ (2021-04-08)|https://lists.apache.org/thread.html/rbc1ff0ae78359b580786ff76ad006f1edeca4da13b0f946cd4f48a8d%40%3Cusers.jena.apache.org%3E]
> See attached for stacktrace mentioned in the report.
> A simple UC:
> {noformat}
>         DatasetGraph dsg = DatabaseMgr.createDatasetGraph();
>         dsg.executeRead(()->{});
> {noformat}
> and breakpoint on Journal.sync:
> {noformat}
>     Journal.sync() line: 384	
>     Journal.reset() line: 397	
>     TransactionCoordinator.completed(Transaction) line: 708	
>     Transaction.endInternal() line: 218	
>     Transaction.commit() line: 182	
>     TransactionalBase.commitExec() line: 143	
>     TransactionalBase(TransactionalSystem).commit() line: 33	
>     TransactionalBase.commit() line: 131	
>     DatasetGraphTDB(DatasetGraphStorage).commit() line: 69	
>     DatasetGraphSwitchable(DatasetGraphWrapper).commit() line: 276	
>     Txn.exec(T, TxnType, Runnable) line: 85	
>     Txn.executeRead(T, Runnable) line: 115	
>     DatasetGraphSwitchable(Transactional).executeRead(Runnable) line: 249	
>     Report.main(String[]) line: 70
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)