[GitHub] incubator-distributedlog pull request #98: DL-171 : adding a short sleep to ...

2017-01-06 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-distributedlog/pull/98


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-distributedlog pull request #98: DL-171 : adding a short sleep to ...

2017-01-05 Thread xieliang
GitHub user xieliang opened a pull request:

https://github.com/apache/incubator-distributedlog/pull/98

DL-171 : adding a short sleep to let the WriteCompleteListener have time to 
run before the final position be requested

once the "writer.write" is done, if "writer.position()" be invoked easier 
than the WriteCompleteListener onSuccess callback, due to the "synchronized", 
the position result will be 0, not the expected 33. we can just add a short 
sleep to avoid this test issue.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/xieliang/incubator-distributedlog 
DL-171-Fix-TestAppendOnlyStreamWriter

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-distributedlog/pull/98.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 #98


commit 9de4d177d2c4d41aaaeaa69012be01fa4e0104ad
Author: xieliang 
Date:   2017-01-05T08:56:37Z

adding a short sleep to let the WriteCompleteListener have time to run 
before the final position be requested




---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---