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

[#555] Response-only Streaming #556

Closed
wants to merge 3 commits into from

Conversation

zizhong
Copy link

@zizhong zizhong commented Mar 12, 2021

Details can be found in #555.

@zizhong
Copy link
Author

zizhong commented Mar 12, 2021

cc @nizarm @ssheng

@zizhong zizhong force-pushed the response-only-streaming branch from a71203d to 01ef9a6 Compare March 15, 2021 23:23
Copy link
Contributor

@nizarm nizarm left a comment

Choose a reason for hiding this comment

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

Looking really good. Can we also have integration tests written for these under R2-int-test module? Maybe for the below combinations with the RestRequestStreamResponse API

  1. Rest Echo and Stream Response
  2. Timeout
  3. Rest request Compression
  4. Stream Response Compression

import com.linkedin.r2.transport.http.client.common.ErrorChannelFutureListener;
import com.linkedin.r2.transport.http.client.common.ssl.SslSessionValidator;
import com.linkedin.r2.transport.http.client.stream.AbstractNettyResponseOnlyStreamClient;
import com.linkedin.r2.transport.http.client.stream.AbstractNettyStreamClient;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused import AbstractnettyStreamClient

Comment on lines +52 to +54
* @author Steven Ihde
* @author Ang Xu
* @author Zhenkai Zhu
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the author section since this is a new file

Comment on lines +60 to +62
/**
* Creates a new HttpNettyStreamClient
*
Copy link
Contributor

Choose a reason for hiding this comment

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

Create a new ResponseOnlyStreamClient?

Comment on lines +50 to +55
/**
* @author Steven Ihde
* @author Ang Xu
* @author Zhenkai Zhu
* @author Sean Sheng
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the @author section, since this is a new file

@zizhong
Copy link
Author

zizhong commented Mar 27, 2021

Put this work on hold as this requires either excessive refactor or additional flags. So that we decided to make the record-and-replay patch to resolve the issue quickly.
The record-and-replay patch is #574

@zizhong zizhong closed this Mar 27, 2021
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