Skip to content

THRIFT-5183: Don't try to read next frame in THeaderTransport.Read#2110

Merged
dcelasun merged 1 commit intoapache:masterfrom
fishy:go-theader-fix-bug
Apr 24, 2020
Merged

THRIFT-5183: Don't try to read next frame in THeaderTransport.Read#2110
dcelasun merged 1 commit intoapache:masterfrom
fishy:go-theader-fix-bug

Conversation

@fishy
Copy link
Copy Markdown
Member

@fishy fishy commented Apr 22, 2020

Client: go

Trying to read the next frame will likely cause the Read call blocking
indefinitely and eventually lead to timeout. See the JIRA ticket for
more context.

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, add [skip ci] at the end of your pull request to free up build resources.

@fishy
Copy link
Copy Markdown
Member Author

fishy commented Apr 22, 2020

@dcelasun :)

@fishy fishy force-pushed the go-theader-fix-bug branch from dc043e3 to 3398c3d Compare April 22, 2020 20:57
@dcelasun
Copy link
Copy Markdown
Member

Nice catch @fishy! Could you maybe add a test so this won't regress in a potential refactor down the line?

@fishy fishy force-pushed the go-theader-fix-bug branch from 3398c3d to c1a5788 Compare April 24, 2020 00:34
@fishy
Copy link
Copy Markdown
Member Author

fishy commented Apr 24, 2020

@dcelasun Test added.

@fishy fishy force-pushed the go-theader-fix-bug branch from c1a5788 to fbac38b Compare April 24, 2020 00:42
Client: go

Trying to read the next frame will likely cause the Read call blocking
indefinitely and eventually lead to timeout. See the JIRA ticket for
more context.
@fishy fishy force-pushed the go-theader-fix-bug branch from fbac38b to 2f37702 Compare April 24, 2020 00:47
@dcelasun dcelasun merged commit e98ba9c into apache:master Apr 24, 2020
@dcelasun
Copy link
Copy Markdown
Member

Thanks! CI failures are unrelated so I'm merging this.

@fishy fishy deleted the go-theader-fix-bug branch April 24, 2020 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants