You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by franz1981 <gi...@git.apache.org> on 2017/08/01 12:55:15 UTC
[GitHub] activemq-artemis pull request #1435: ARTEMIS-1312 TimedBuffer doubled timeou...
GitHub user franz1981 opened a pull request:
https://github.com/apache/activemq-artemis/pull/1435
ARTEMIS-1312 TimedBuffer doubled timeout with blocking flush
It fixes one of the TimedBuffer timing test making use of a blocking flush to ensure IO callbacks to be called simulating a real flush time.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/franz1981/activemq-artemis fixed_timed_buffer_test
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1435.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 #1435
----
commit 99776e2bbd66c4c44253e0ba424b3573ce7c6710
Author: Francesco Nigro <ni...@gmail.com>
Date: 2017-08-01T12:52:07Z
ARTEMIS-1312 TimedBuffer doubled timeout with blocking flush
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by franz1981 <gi...@git.apache.org>.
Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
@clebertsuconic AFAIK in ASYNCIO the callback::done is called just after that the "real" flush operation is performed ([org_apache_activemq_artemis_jlibaio_LibaioContext::JNICALL Java_org_apache_activemq_artemis_jlibaio_LibaioContext_blockedPoll](https://github.com/franz1981/activemq-artemis/blob/5e5ac0f0575a89ea81bcedfce63e73949c14c11c/artemis-native/src/main/c/org_apache_activemq_artemis_jlibaio_LibaioContext.c#L630-L630) ) hence it can't take 0 time. Instead, the ``TimedBufferObserver::flushBuffer`` call can take ~0 time (with ASYNCIO) but the callbacks won't be triggered until the real flush will' be performed, makes sense?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by franz1981 <gi...@git.apache.org>.
Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
@clebertsuconic I'm not diverging, I'm showing that the old version of the test was doing something that is not valid (aka calling the callbacks without waiting the proper flush time), that's why now that the timeout is honored, it was failing..
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by franz1981 <gi...@git.apache.org>.
Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
@clebertsuconic It is not waiting the first time: it is honoring the callback contract.
If is a blocking device or not the callbacks must be called after a flush and a flush can't take less than timeout value.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis pull request #1435: ARTEMIS-1312 TimedBuffer doubled timeou...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/activemq-artemis/pull/1435
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by clebertsuconic <gi...@git.apache.org>.
Github user clebertsuconic commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
'It is not waiting the first time:'
This is not an issue, but it broke the test...
'a flush can't take less than timeout value.'
What that means? it takes zero time in AIO.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by clebertsuconic <gi...@git.apache.org>.
Github user clebertsuconic commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
@franz1981 you are diverging here ;)
It's just the test that's wrong... but you can't add a sleep on flush. that's wrong and cheating the test.
If there's anything wrong it would hide the issue.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] activemq-artemis issue #1435: ARTEMIS-1312 TimedBuffer doubled timeout with ...
Posted by franz1981 <gi...@git.apache.org>.
Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1435
@clebertsuconic To show it I've performed a test measuring with ASYNCIO (timeout 2000000 nanoseconds === 500 IOPS) how much time is needed for each callbacke to be triggered (ie called a done) and this is the result:
[

](url)
It shows that each callback::done tooks at least 2000000 nanoseconds before being called.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---