[CH] Add a comment to explain why the endpoint uses a single thread#9257
[CH] Add a comment to explain why the endpoint uses a single thread#9257zhouyuan merged 1 commit intoapache:mainfrom
Conversation
|
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format? See also: |
|
Run Gluten Clickhouse CI on x86 |
|
cc @zhouyuan Sorry to bother you. When I was reading the code, I thought there was no need to set the threadCount additionally here. Could you help me confirm this? |
|
@dcoliversun thanks for checking, it looks like this will break the CK backend, would you please fix this issue? https://opencicd.kyligence.com/job/gluten/job/gluten-ci/15547/ |
| rpcEnv.setupEndpoint(GlutenRpcConstants.GLUTEN_DRIVER_ENDPOINT_NAME, this) | ||
|
|
||
| // TODO(yuan): get thread cnt from spark context | ||
| override def threadCount(): Int = 1 |
There was a problem hiding this comment.
If I recall correctly this piece of code is left to make it compile on different Spark versions, we did not use the thread count here for real work
There was a problem hiding this comment.
Thanks, I just noticed that IsolatedThreadSafeRpcEndpoint was imported from spark 3.4. I suggest to remove TODO, all we need is just a thread-safe endpoint.
f1ae806 to
2a7c0af
Compare
|
Run Gluten Clickhouse CI on x86 |
What changes were proposed in this pull request?
This PR aims to add a comment to explain why the endpoint uses a single thread. We don't need to set thread count from SparkContext[1].
[1] https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rpc/RpcEndpoint.scala#L166-L177
How was this patch tested?
No need to add tests.