-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport to 0.1: Shared must relinquish control to the executor if repolled #2154
Conversation
…polled This backports rust-lang#2136 to Futures 0.1. There isn't much to add on top of what's mentioned in rust-lang#2136: the same bug exists in Futures 0.1, and it'll fail in the same way when polled in recent versions of Tokio (rust-lang#2418). Backporting to 0.1 allows codebases that still have some Futures 0.1 code around to still use newer versions of Tokio.
Any thoughts? :) |
#2122 hasn't been released yet, so it's nice to publish the next release of 0.1 after merging this. (We need to decide how long we should maintain 0.1 branch, but this should be fine given that we have another backport already merged.) |
Could we get this merged and released? Having futures 0.1 being broken on newer versions of Tokio makes upgrading Tokio more painful than it should be :( |
Thanks, I'll prepare the next release. |
Thanks a lot @taiki-e ! |
Summary: We are using older version of tokio which spawns as many threads as we have physical cores instead of the number of logical cores. It was fixed in tokio-rs/tokio#2269 but we can't use it yet because we are waiting for another fix to be released - rust-lang/futures-rs#2154. For now let's hardcode it in mononoke Reviewed By: krallin Differential Revision: D23599140 fbshipit-source-id: 80685651a7a29ba8938d9aa59770f191f7c42b8b
Hey @taiki-e , I'm sorry to be a bit of a bother here, but has this made it into a new release yet? Thanks :) |
Published 0.1.30, sorry for the delay. |
Thanks very much!
…On Mon, 5 Oct 2020 at 17:55, Taiki Endo ***@***.***> wrote:
Published 0.1.30, sorry for the delay.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANIHVQJLTYFPESWHHN7PODSJH27HANCNFSM4M7RLPPQ>
.
|
This backports #2136 to Futures 0.1. There isn't much to add on top of
what's mentioned in #2136: the same bug exists in Futures 0.1, and it'll
fail in the same way when polled in recent versions of Tokio (#2418).
Backporting to 0.1 allows codebases that still have some Futures 0.1
code around to still use newer versions of Tokio.