-
Notifications
You must be signed in to change notification settings - Fork 141
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
[#782]refactor: restrict rss.rpc.server.type to an enum #783
Conversation
Codecov Report
@@ Coverage Diff @@
## master #783 +/- ##
============================================
+ Coverage 57.86% 59.49% +1.62%
- Complexity 2028 2070 +42
============================================
Files 298 290 -8
Lines 14520 12840 -1680
Branches 1185 1212 +27
============================================
- Hits 8402 7639 -763
+ Misses 5643 4771 -872
+ Partials 475 430 -45
... and 30 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. plz fix the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for this change
Should we add some check in the line incubator-uniffle/server/src/main/java/org/apache/uniffle/server/ShuffleServer.java Line 234 in ea5a3ba
|
I don't get your point. could you elaborate a bit more on it? |
If rpc.server.type |
I don't think so. If we are going to add the following constraint, users have to modify two settings to enable netty. This adds overhead to user side compared to the current way: set netty port to a non-negative one. |
But if it's inconsistent, it will be confusing. |
I would remove the When netty is ready, we can then make netty a dedicate rpc server type. |
OK. LGTM. |
980c1c8
Em ..... but the client rpc type is |
emmm, I believe the client type might not be appropriate, and it seems never used to configure it in the client side. We may need to refactor this client type? |
I think it's suitable. We use the |
I know. But for rpc type, GRPC_NETTY might not be appropriate. The client might use grpc or grpc_netty both, but it's confused with the rpc type.... The |
I think your thought will bring more cost that users need to understand. We should simplify the rpc type. |
Maybe, so we need to think it carefully. |
I changed the RPCServerType to ServerType, which should be matched with ClientType.
As for this suggestion, I would like to refactor the ShuffleServer to create netty stream server via ShuffleServerFactory and do validations there. |
Ok for me. |
…#783) ### What changes were proposed in this pull request? 1. make RPC_SERVER_TYPE an enum 2. remove ServerType definition in various places ### Why are the changes needed? This resolves apache#782 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UTs
What changes were proposed in this pull request?
Why are the changes needed?
This resolves #782
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UTs