You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/04/17 17:22:40 UTC
[GitHub] nicmichael opened a new pull request #1355: Issue 1354: Spin-Wait
for I/O completion wastes CPU time in BK Client
nicmichael opened a new pull request #1355: Issue 1354: Spin-Wait for I/O completion wastes CPU time in BK Client
URL: https://github.com/apache/bookkeeper/pull/1355
Issue 1354: Spin-Wait for I/O completion wastes CPU time in BK Client (JDK8)
This bugfix for issue 1354 changes the call of CompletableFuture.get() in SyncCallbackUtils.waitForResult() to CompletableFuture.get(Long.MAX_VALUE, TimeUnit.NANOSECONDS), which leads to the same behavior, but avoids spinning (and thus reduces CPU consumption) in JDK8.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services