-
Notifications
You must be signed in to change notification settings - Fork 151
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
[#2278] feat(coordinator): Introduce AccessSupportRssChecker to reject the un-support application earlier #2277
base: master
Are you sure you want to change the base?
Conversation
5eb22b9
to
3d2c4df
Compare
@@ -92,7 +93,8 @@ public class CoordinatorConf extends RssBaseConf { | |||
.asList() | |||
.defaultValues( | |||
"org.apache.uniffle.coordinator.access.checker.AccessClusterLoadChecker", | |||
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker") | |||
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker", | |||
AccessSupportRssChecker.class.getCanonicalName()) |
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.
Could you modify the document, too.
@@ -92,7 +93,8 @@ public class CoordinatorConf extends RssBaseConf { | |||
.asList() | |||
.defaultValues( | |||
"org.apache.uniffle.coordinator.access.checker.AccessClusterLoadChecker", | |||
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker") | |||
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker", |
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.
Could you use similar way to refactor the code like AccessSupportRssChecker.class.getCanonicalName()
?
|
||
@Override | ||
public AccessCheckResult check(AccessInfo accessInfo) { | ||
String serializer = accessInfo.getExtraProperties().get("serializer"); |
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.
This is related to the Spark engine. How to make this more common?
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.
@jerqi Yeah, so how about add a new config to make this abstract? lets say it unsupportConfigs
,
For example unsupportConfigs="serializer:org.apache.hadoop.io.serializer.JavaSerialization"
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.
We would better make that unsupportConfigs
become configs for the shuffle server.
What changes were proposed in this pull request?
Introduce AccessSupportRssChecker to reject the un-support application earlier
Why are the changes needed?
Fix: #2278
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT