-
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.
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.
done
@@ -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()
?
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.
done
|
||
@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.
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.
done
@jerqi Thanks for the previous review and sorry for the late update. The comments are all addressed by the new commits, PTAL. |
| rss.reconfigure.interval.sec | 5 | Reconfigure check interval. | | ||
| rss.coordinator.rpc.audit.log.enabled | true | When set to true, for auditing purposes, the coordinator will log audit records for every rpc request operation. | | ||
| rss.coordinator.rpc.audit.log.excludeList | appHeartbeat,heartbeat | Exclude record rpc audit operation list, separated by ','. | | ||
| rss.coordinator.unsupportedConfigs | serializer:org.apache.hadoop.io.serializer.JavaSerialization | The unsupported config list separated by ',', the key value separated by ':'. If the client configures these properties and they are set to be denied access, the client's access will be rejected. | |
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.
Empty may be better the default value.
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