Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

THRIFT-5845: Return TException for union check in Write #3086

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

fishy
Copy link
Member

@fishy fishy commented Jan 9, 2025

Client: go

In compiler generated Write method for union types, return a TException (TProtocolException) when the number of fields set is not exactly 1, to help customer logic to decide whether to reuse a connection after an error.

While I'm here, also do the same thing for the uniqueness check failure for set fields in Write as well.

Client: go

In compiler generated Write method for union types, return a TException
(TProtocolException) when the number of fields set is not exactly 1, to
help customer logic to decide whether to reuse a connection after an
error.

While I'm here, also do the same thing for the uniqueness check failure
for set fields in Write as well.
@fishy fishy requested a review from dcelasun January 9, 2025 18:19
@fishy fishy added the golang patches related to go language label Jan 9, 2025
@fishy fishy merged commit e10109c into apache:master Jan 10, 2025
18 of 22 checks passed
@fishy fishy deleted the go-compiler-texception-write branch January 10, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
golang patches related to go language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants