[#2254][FOLLOWUP] improvement(spark):Add include key filter before report extraProperties#2265
Conversation
|
@jerqi Thanks for the review of #2254, I added the related document and add white list config to improve this feature. |
| List<String> includeProperties = | ||
| rssConf.get(RssClientConf.RSS_CLIENT_REPORT_INCLUDE_PROPERTIES); | ||
| rssConf.getAll().stream() | ||
| .filter(entry -> includeProperties.isEmpty() || includeProperties.contains(entry.getKey())) |
There was a problem hiding this comment.
Why do we judge the includeProperties.isEmpty()?
There was a problem hiding this comment.
Empty means include all, that means include config is disabled, it reference what hdfs treat include/excludes datanode list
There was a problem hiding this comment.
Empty should mean including empty.
There was a problem hiding this comment.
So how to express including all?
There was a problem hiding this comment.
If we have include list, you can't express including all.
There was a problem hiding this comment.
Well, if I set the include option withNoDefaults, do you think it can make sense if we do not set this include option stand for include all?
|
@jerqi Sorry for the late reply, it really busy these days, addressed the suggestion from you PTAL. |
7f81482 to
a1fb2fd
Compare
docs/client_guide/client_guide.md
Outdated
| | <client_type>.rss.client.rpc.netty.maxOrder | 3 | The value of maxOrder for PooledByteBufAllocator when using gRPC internal Netty on the client-side. This configuration will only take effect when rss.rpc.server.type is set to GRPC_NETTY. | | ||
| | <client_type>.rss.client.rpc.netty.smallCacheSize | 1024 | The value of smallCacheSize for PooledByteBufAllocator when using gRPC internal Netty on the client-side. This configuration will only take effect when rss.rpc.server.type is set to GRPC_NETTY. | | ||
| | <client_type>.rss.client.blockIdManagerClass | - | The block id manager class of server for this application, the implementation of this interface to manage the shuffle block ids | | ||
| | <client_type>.rss.client.reportExcludeProperties | - | the report exclude properties could be configured by this option | |
There was a problem hiding this comment.
Is the document right about reportExcludeProperties and reportIncludeProperties?
|
@jerqi I updated the document of those new configure keys. PTAL |
|
@jerqi Thanks for your review! Merged. |
What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Tested on our test cluster.