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

stream: split per-attempt data from clientStream #1900

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Mar 6, 2018

This is pre-work to implementing retry support. Each retry attempt will have its own csAttempt. The fields left in clientStream are the same across all attempts.

@dfawley dfawley added the Type: Internal Cleanup Refactors, etc label Mar 6, 2018
@dfawley dfawley requested a review from lyuxuan March 8, 2018 21:10
}
if cs.trInfo.tr != nil {
if a.trInfo.tr != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the outter conditional?

if EnableTracing {
  if a.trInfo.tr != nil {
  ....
}

Copy link
Member Author

@dfawley dfawley Mar 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are holding a.mu here, so looking at only a.trInfo.tr is good. The only reason to check EnableTracing in the other cases is to avoid taking the lock if tracing is disabled globally.

@dfawley dfawley changed the title split per-attempt data from clientStream stream: split per-attempt data from clientStream Mar 12, 2018
@dfawley dfawley merged commit 13975c0 into grpc:master Mar 12, 2018
@menghanl menghanl added this to the 1.11 Release milestone Mar 27, 2018
lyuxuan pushed a commit to lyuxuan/grpc-go that referenced this pull request Apr 4, 2018
This is pre-work to implementing retry support. Each retry attempt will have its own csAttempt. The fields left in clientStream are the same across all attempts.
@dfawley dfawley deleted the attempt branch May 1, 2018 20:36
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants