GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — google-api-core: AsyncStreamingRetry drops values yielded while handling athrow() · Issue #19104 · googleapis/google-cloud-python Open DescriptionSummary
This is a local async-generator protocol reproduction, not a report of an observed Cloud service failure. The undecorated generator behaves as expected with the same inputs. API client name and version
Reproduction steps: codeimport asyncio from google.api_core.retry.retry_streaming_async import AsyncStreamingRetry class Recoverable(Exception): pass async def target(): try: yield 'start' except Recoverable: sent = yield 'recovered' yield ('received', sent) yield 'tail' async def scenario(wrapped): gen = await AsyncStreamingRetry(predicate=lambda exc: False)(target)() if wrapped else target() try: first = await gen.__anext__() recovered = await gen.athrow(Recoverable()) try: sent = await gen.asend('consumer reply') except StopAsyncIteration: sent = 'STOP' print('wrapped:', wrapped, first, recovered, sent) finally: await gen.aclose() async def main(): await scenario(False) await scenario(True) asyncio.run(main()) No supporting files, credentials, network requests or Cloud project are needed. Actual resultsExpected resultsBoth lines should contain Environment and validation
Additional contextIn I checked the earlier streaming-retry work in googleapis/python-api-core#495 and the related #485/#528/#698 discussions, plus the current repository's matching discussions and relevant development branches. I did not find a fix for this handled-exception case. No fix implementation has been written or submitted. Following the issue-first guidance, would a focused fix for this delegation path, with regression tests for recovery/send/exhaustion, be welcome? Investigation and reproduction tests developed with AI assistance. ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |