You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "waitinfuture (via GitHub)" <gi...@apache.org> on 2023/06/20 12:24:26 UTC
[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1613: [CELEBORN-703][WORKER][PERF] Avoid calling `CelebornConf.get` multi-time when `PushDataHandler` handle `PushData`/`PushMergedData`
waitinfuture commented on code in PR #1613:
URL: https://github.com/apache/incubator-celeborn/pull/1613#discussion_r1235187781
##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/PushDataHandler.scala:
##########
@@ -128,12 +131,12 @@ class PushDataHandler extends BaseMessageHandler with Logging {
val isMaster = mode == PartitionLocation.Mode.MASTER
// For test
- if (isMaster && conf.testPushMasterDataTimeout && !pushMasterDataTimeoutTested) {
+ if (isMaster && !pushMasterDataTimeoutTested) {
Review Comment:
Hi @cfmcgrady , the purpose here is that if ```conf.testPushSlaveDataTimeout``` is enabled, go into the test branch only once. So I think we can just reorder the conditions like
```
if (isMaster && !pushMasterDataTimeoutTested && conf.testPushMasterDataTimeout)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org