Skip to content

Conversation

@afs
Copy link
Member

@afs afs commented Aug 21, 2016

This adds additional control over the queue in the journal.

If the journal gets large, as measured by the journal file size in bytes (JENA-1222) then try to flush the journal.

If the journal becomes excessive long in terms of pending commits (JENA-1224) then after a writer, flip to exclusive mode, flush the journal and flip back to normal mode.

// System.err.printf("checkForJournalFlush: queue size=%d; journal size = %d\n", queue.size(), journal.size()) ;
// System.err.printf("checkForJournalFlush: QueueBatchSize=%d; MaxQueueThreshold=%d; JournalThresholdSize=%d\n",
// QueueBatchSize, MaxQueueThreshold, JournalThresholdSize) ;
if ( QueueBatchSize == 0 )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but it seems like this is part of the next case (isn't queue.size() >= 0 an invariant?). Is this called out just to emphasize that setting 0 => "no queuing"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True - remains of when JENA-1224 (excessive queue length was handled here ... bit that didn't work out). Tiding up done in the next commit.

@asfgit asfgit merged commit 5e73f56 into apache:master Aug 23, 2016
asfgit pushed a commit that referenced this pull request Aug 23, 2016
@afs afs deleted the tdb-txn branch August 23, 2016 15:36
xristy added a commit that referenced this pull request Nov 7, 2019
* fix lds-pdi #164 : correct effectiveFIeld, add lang highlight test

* remove unused parameter, useDocLang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants