Skip to content

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

Merged
fishy merged 1 commit intoapache:masterfrom
fishy:go-compiler-texception-write
Jan 10, 2025
Merged

THRIFT-5845: Return TException for union check in Write#3086
fishy merged 1 commit intoapache:masterfrom
fishy:go-compiler-texception-write

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 21 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