Skip to content

Comments

[SPARK-44722][CONNECT] ExecutePlanResponseReattachableIterator._call_iter: AttributeError: 'NoneType' object has no attribute 'message'#42397

Closed
juliuszsompolski wants to merge 1 commit intoapache:masterfrom
juliuszsompolski:SPARK-44722
Closed

[SPARK-44722][CONNECT] ExecutePlanResponseReattachableIterator._call_iter: AttributeError: 'NoneType' object has no attribute 'message'#42397
juliuszsompolski wants to merge 1 commit intoapache:masterfrom
juliuszsompolski:SPARK-44722

Conversation

@juliuszsompolski
Copy link
Contributor

What changes were proposed in this pull request?

Tiny error during exception handling: status might in some cases be None.

Make a similar change in scala client just to be defensive, because there it appears that it may never happen (when we catch StatusRuntimeException, StatusProto.fromThrowable should never return null).

Why are the changes needed?

Fix an error during reattach retry handling.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tests that will be published in a followup.

@juliuszsompolski
Copy link
Contributor Author

@HyukjinKwon @hvanhovell

@HyukjinKwon
Copy link
Member

Merged to master and branch-3.5.

HyukjinKwon pushed a commit that referenced this pull request Aug 8, 2023
…iter: AttributeError: 'NoneType' object has no attribute 'message'

### What changes were proposed in this pull request?

Tiny error during exception handling: status might in some cases be None.

Make a similar change in scala client just to be defensive, because there it appears that it may never happen (when we catch `StatusRuntimeException`, `StatusProto.fromThrowable` should never return null).

### Why are the changes needed?

Fix an error during reattach retry handling.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Tests that will be published in a followup.

Closes #42397 from juliuszsompolski/SPARK-44722.

Authored-by: Juliusz Sompolski <julek@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit ea00ecd)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
valentinp17 pushed a commit to valentinp17/spark that referenced this pull request Aug 24, 2023
…iter: AttributeError: 'NoneType' object has no attribute 'message'

### What changes were proposed in this pull request?

Tiny error during exception handling: status might in some cases be None.

Make a similar change in scala client just to be defensive, because there it appears that it may never happen (when we catch `StatusRuntimeException`, `StatusProto.fromThrowable` should never return null).

### Why are the changes needed?

Fix an error during reattach retry handling.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Tests that will be published in a followup.

Closes apache#42397 from juliuszsompolski/SPARK-44722.

Authored-by: Juliusz Sompolski <julek@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants