Skip to content

[v14] fix: Do not attempt relogin on remote BadParameter errors#36924

Merged
codingllama merged 2 commits intobranch/v14from
codingllama/backport/36866-v14
Feb 1, 2024
Merged

[v14] fix: Do not attempt relogin on remote BadParameter errors#36924
codingllama merged 2 commits intobranch/v14from
codingllama/backport/36866-v14

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Jan 19, 2024

Backport #36866 and #37647 to branch/v14.

Changelog: Fix tsh trying to relogin on fatal errors

#36749, #36850

* fix: Do not attempt relogin on trace.BadParameterError

* Special case remote errors in IsErrorResolvableWithRelogin

* Do not wrap Recv EOF errors

* Fix various tests

* Use errors.Is to check for io.EOF
@codingllama
Copy link
Copy Markdown
Contributor Author

Clean backport - git got a bit confused with the assertions on api/utils/grpc/interceptors/errors_test.go but the final patch ended exactly the same.

@codingllama
Copy link
Copy Markdown
Contributor Author

I'll hold merging until the end of v15 testplan, just in case.

@codingllama
Copy link
Copy Markdown
Contributor Author

FYI, I'm waiting until #37647 can be backported to merge this one.

* Verify that intercepted stream Sends wrap io.EOF

* fix: Do not wrap io.EOF intercepted by stream Sends

* Use a helper func, fix duplicate Send/Recv calls

* Fix typo
@codingllama
Copy link
Copy Markdown
Contributor Author

I've cherry-picked #37647 on top of this. PTAL.

@codingllama codingllama added this pull request to the merge queue Feb 1, 2024
Merged via the queue into branch/v14 with commit 38bc5b4 Feb 1, 2024
@codingllama codingllama deleted the codingllama/backport/36866-v14 branch February 1, 2024 20:49
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.

4 participants