Skip to content

[v13] fix: Do not attempt relogin on remote BadParameter errors#36925

Merged
codingllama merged 3 commits intobranch/v13from
codingllama/backport/36866-v13
Feb 1, 2024
Merged

[v13] fix: Do not attempt relogin on remote BadParameter errors#36925
codingllama merged 3 commits intobranch/v13from
codingllama/backport/36866-v13

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Jan 19, 2024

Backport #36866 to branch/v13.

Changelog: Fixed 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 cherry-pick from #36924.

* 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 one too. PTAL.

@codingllama codingllama added this pull request to the merge queue Feb 1, 2024
Merged via the queue into branch/v13 with commit 742e3b2 Feb 1, 2024
@codingllama codingllama deleted the codingllama/backport/36866-v13 branch February 1, 2024 20:47
@camscale camscale mentioned this pull request Feb 6, 2024
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