Skip to content

Conversation

maobaolong
Copy link
Member

@maobaolong maobaolong commented Dec 8, 2024

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

@maobaolong maobaolong changed the title Introduce AccessSupportRssChecker to reject the un-support application earlier [#2278] feat(coordinator): Introduce AccessSupportRssChecker to reject the un-support application earlier Dec 8, 2024
Copy link

github-actions bot commented Dec 8, 2024

Test Results

 2 981 files  +15   2 981 suites  +15   6h 25m 27s ⏱️ - 3m 21s
 1 098 tests + 2   1 096 ✅ + 2   2 💤 ±0  0 ❌ ±0 
13 765 runs  +30  13 735 ✅ +30  30 💤 ±0  0 ❌ ±0 

Results for commit 6621014. ± Comparison against base commit 4ce1aa8.

♻️ This comment has been updated with latest results.

"org.apache.uniffle.coordinator.access.checker.AccessClusterLoadChecker",
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker")
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker",
AccessSupportRssChecker.class.getCanonicalName())
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

.defaultValues(
"org.apache.uniffle.coordinator.access.checker.AccessClusterLoadChecker",
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker")
"org.apache.uniffle.coordinator.access.checker.AccessQuotaChecker",
Copy link
Contributor

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()?

Copy link
Member Author

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");
Copy link
Contributor

@jerqi jerqi Dec 10, 2024

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?

Copy link
Member Author

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"

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@maobaolong maobaolong requested a review from jerqi January 3, 2025 07:29
@maobaolong
Copy link
Member Author

@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. |
Copy link
Contributor

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.

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.

[Improvement] org.apache.spark.serializer.JavaSerializer does not support object relocation.

2 participants