You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "fresh-borzoni (via GitHub)" <gi...@apache.org> on 2026/04/17 21:39:46 UTC
[I] [python ] LogScanner poll API is sync and blocks the asyncio event loop [fluss-rust]
fresh-borzoni opened a new issue, #496:
URL: https://github.com/apache/fluss-rust/issues/496
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss-rust/issues) and found nothing similar.
### Description
LogScanner's poll(), poll_record_batch(), poll_arrow(), to_arrow() and to_pandas() are synchronous and internally do py.detach + block_on. Because they run on the event loop thread, concurrent future_into_py tasks can't make progress while a poll is in flight, which causes intermittent deadlocks when users mix scanning with other async operations. It's also inconsistent with the rest of the Python API, which is fully async.
Convert these five methods to async via future_into_py. This is a breaking change - they return awaitables. All call sites, examples, docs and type stubs need updating. The private _async_poll helpers used by aiter become redundant once this lands and should be removed, and the function-scoped test fixtures added in #494 (a workaround for the blocking loop) can be reverted.
### Willingness to contribute
- [x] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [python ] LogScanner poll API is sync and blocks the asyncio event loop [fluss-rust]
Posted by "leekeiabstraction (via GitHub)" <gi...@apache.org>.
leekeiabstraction closed issue #496: [python ] LogScanner poll API is sync and blocks the asyncio event loop
URL: https://github.com/apache/fluss-rust/issues/496
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org