The related bug resulted when an exception occurred within the
future.result() call. This caused the finally block to be executed,
and therefore myid to be deleted from self.outstanding_msgs prior
to _reader_main() checking if the msgid not in self.outstanding_msgs.
This caused _reader_main() to raise an AssertionError because the
msgid was no longer in outstanding_msgs. This is a small step forward
to log a warning when this siutation occurs.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.privsep/ +/803225 /opendev. org/openstack/ oslo.privsep/ commit/ 4f1450677ff7c6b 22496c391ab87dc 79c86c3ef4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 4f1450677ff7c6b 22496c391ab87dc 79c86c3ef4
Author: Corey Bryant <email address hidden>
Date: Mon Aug 2 11:47:47 2021 -0400
Add except path with exception debug to send_recv
The related bug resulted when an exception occurred within the g_msgs prior g_msgs.
future.result() call. This caused the finally block to be executed,
and therefore myid to be deleted from self.outstandin
to _reader_main() checking if the msgid not in self.outstandin
This caused _reader_main() to raise an AssertionError because the
msgid was no longer in outstanding_msgs. This is a small step forward
to log a warning when this siutation occurs.
Related-Bug: #1927868 8a2aa3d1b21bd1d a4c497f624d
Change-Id: I2eed242e0c796b