asserting throwing for async publish with currently errored batch #48
Labels
api: pubsub
Issues related to the googleapis/python-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
python --version
: Python 3.7.6pip --version
: pip 19.3.1google-cloud-pubsub
version:pip show google-cloud-pubsub
1.3.1Code example
Stack trace
As I mentioned just now in #26 (comment) it looks like there is an assert that was added that can now trigger for an errored out batch.
batch errors could happen any time so it seems like it would be better to move the assert below the check to see if the batch is still accepting new messages so that a new batch can be created if it errored out.
I validated the same code does not throw an exception on publish in
1.2.0
The text was updated successfully, but these errors were encountered: