[ 
https://issues.apache.org/jira/browse/SPARK-61187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-61187.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 367
[https://github.com/apache/spark-connect-rust/pull/367]

> Raise NO_ACTIVE_SESSION when a stream of a stopped session reattaches, as 
> PySpark does
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-61187
>                 URL: https://issues.apache.org/jira/browse/SPARK-61187
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: connect-rust-4.3.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.3.0
>
>
> After stop() closes the client, the RPCs of the session raise 
> NO_ACTIVE_SESSION, but a result stream that was still open at stop() kept 
> reading: when the server ended the stream (for example after 
> senderMaxStreamDuration) and the client had to reattach, ReattachExecute went 
> out and the rows kept coming. The reattach and an ExecutePlan sent again 
> bypassed the closed-client check. PySpark's iterator reattaches through the 
> closed client's stub, which raises NO_ACTIVE_SESSION, so the read fails with 
> that error. The fix checks the closed state before each reattach attempt and 
> ends the stream with that error.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to