You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
MetadataRecordBatchReader.to_reader() does not release GIL as it creates the RecordBatchReader via call to MakeRecordBatchReader.
MakeRecordBatchReader waits for first batch of data to arrive before it returns the RBR => interpreter will essentially 'stop' until the data is available. This can have 'interesting' consequences especially if used on server...
Workaround: first call stream.schema - this waits for the first batch of data while not holding GIL, then follow with stream.to_reader()
Component(s)
FlightRPC, Python
The text was updated successfully, but these errors were encountered:
lupko
changed the title
[Python] FlightStreamReader does not release GIL in to_reader() method
[Python] MetadataRecordBatchReader does not release GIL in to_reader() method
Mar 26, 2023
### Rationale for this change
See #34731
### What changes are included in this PR?
Wrap existing call that creates RBR in `with nogil:` context
### Are these changes tested?
No new tests.
### Are there any user-facing changes?
No
* Closes: #34731
Authored-by: lupko <lubomir.slivka@gooddata.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
ArgusLi
pushed a commit
to Bit-Quill/arrow
that referenced
this issue
May 15, 2023
…pache#34732)
### Rationale for this change
See apache#34731
### What changes are included in this PR?
Wrap existing call that creates RBR in `with nogil:` context
### Are these changes tested?
No new tests.
### Are there any user-facing changes?
No
* Closes: apache#34731
Authored-by: lupko <lubomir.slivka@gooddata.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
lupko
added a commit
to lupko/arrow
that referenced
this issue
Oct 2, 2024
Describe the bug, including details regarding any error messages, version, and platform.
MetadataRecordBatchReader.to_reader()
does not release GIL as it creates the RecordBatchReader via call toMakeRecordBatchReader
.MakeRecordBatchReader
waits for first batch of data to arrive before it returns the RBR => interpreter will essentially 'stop' until the data is available. This can have 'interesting' consequences especially if used on server...Workaround: first call
stream.schema
- this waits for the first batch of data while not holding GIL, then follow withstream.to_reader()
Component(s)
FlightRPC, Python
The text was updated successfully, but these errors were encountered: