[oslo][futurist] Possible bug in futurist waiters.wait_for_any

Herve Beraud hberaud at redhat.com
Mon Oct 21 08:44:23 UTC 2019


Hello,

Thanks for the heads up.

You are right this is related to https://bugs.python.org/issue20319
futurist implement a similar code than the cpython concurrent.future code
but not fixed yet.

I just submitted a patch to fix that, feel free to review it:
- https://review.opendev.org/689691

Thanks

Le sam. 19 oct. 2019 à 08:44, info at dantalion.nl <info at dantalion.nl> a
écrit :

> Hello everyone,
>
> I think I have found a significant bug in the futurist concurrency
> library that is breaking for my application.
>
> If I launch a threadpool and submit n > 1 number of tasks. If now for
> any n of these tasks such a task calls Condition.wait(). Than when
> waiters.wait_for_any is called from the main thread it will block
> indefinitely instead of returning the n - 1 tasks that have completed.
> Furthermore setting the timeout parameter in wait_for_any is
> subsequently ignored.
>
> I have submitted this as a bug report on launchpad:
> https://bugs.launchpad.net/futurist/+bug/1848457
>
> Any help on this is really appreciated as I think it is a significant
> issue.
>
> Kind regards,
> Corne Lukken (Dantali0n)
>
> PS: I also submitted this over on stackoverflow:
>
> https://stackoverflow.com/questions/58410610/calling-condition-wait-inside-thread-causes-retrieval-of-any-future-to-block-o
>
>
>
>
>

-- 
Hervé Beraud
Senior Software Engineer
Red Hat - Openstack Oslo
irc: hberaud
-----BEGIN PGP SIGNATURE-----

wsFcBAABCAAQBQJb4AwCCRAHwXRBNkGNegAALSkQAHrotwCiL3VMwDR0vcja10Q+
Kf31yCutl5bAlS7tOKpPQ9XN4oC0ZSThyNNFVrg8ail0SczHXsC4rOrsPblgGRN+
RQLoCm2eO1AkB0ubCYLaq0XqSaO+Uk81QxAPkyPCEGT6SRxXr2lhADK0T86kBnMP
F8RvGolu3EFjlqCVgeOZaR51PqwUlEhZXZuuNKrWZXg/oRiY4811GmnvzmUhgK5G
5+f8mUg74hfjDbR2VhjTeaLKp0PhskjOIKY3vqHXofLuaqFDD+WrAy/NgDGvN22g
glGfj472T3xyHnUzM8ILgAGSghfzZF5Skj2qEeci9cB6K3Hm3osj+PbvfsXE/7Kw
m/xtm+FjnaywZEv54uCmVIzQsRIm1qJscu20Qw6Q0UiPpDFqD7O6tWSRKdX11UTZ
hwVQTMh9AKQDBEh2W9nnFi9kzSSNu4OQ1dRMcYHWfd9BEkccezxHwUM4Xyov5Fe0
qnbfzTB1tYkjU78loMWFaLa00ftSxP/DtQ//iYVyfVNfcCwfDszXLOqlkvGmY1/Y
F1ON0ONekDZkGJsDoS6QdiUSn8RZ2mHArGEWMV00EV5DCIbCXRvywXV43ckx8Z+3
B8qUJhBqJ8RS2F+vTs3DTaXqcktgJ4UkhYC2c1gImcPRyGrK9VY0sCT+1iA+wp/O
v6rDpkeNksZ9fFSyoY2o
=ECSj
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191021/cab2e4f9/attachment.html>


More information about the openstack-discuss mailing list