Skip to content

ARTEMIS-1312 TimedBuffer doubled timeout with blocking flush#1433

Closed
franz1981 wants to merge 1 commit intoapache:masterfrom
franz1981:timed_buffer_sanity_test
Closed

ARTEMIS-1312 TimedBuffer doubled timeout with blocking flush#1433
franz1981 wants to merge 1 commit intoapache:masterfrom
franz1981:timed_buffer_sanity_test

Conversation

@franz1981
Copy link
Copy Markdown
Contributor

It changes the TimedBuffer timeout expiration using the effective flush time (if available) to perform the sleep time after a submitted flush.
This wouldn't impact ASYNCIO that is supposed to be nonblocking on flush submission, but will let NIO/MAPPED to have the timeout matching the configured IOPS.

sleepIfPossible();
//it could wait until the timeout is expired
final long timeFromTheLastFlush = System.nanoTime() - lastFlushTime;
final long timeToSleep = timeFromTheLastFlush - timeout;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You are basically discounting the time it took to sync?

looks good!

@asfgit asfgit closed this in 4694aab Aug 1, 2017
@franz1981 franz1981 deleted the timed_buffer_sanity_test branch October 27, 2017 07:50
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.

2 participants