You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2025/08/26 07:22:45 UTC
[PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
cxzl25 opened a new pull request, #3451:
URL: https://github.com/apache/celeborn/pull/3451
### What changes were proposed in this pull request?
`celeborn.worker.sortPartition.sortTimeLogThreshold=220s`
### Why are the changes needed?
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
```
25/08/26 15:18:43,520 INFO [worker-file-sorter-executor-0] PartitionFilesSorter: File sorting took 3086ms for fileId: application-1-/tmp/Celeborn369677075541712354sort-suite, shuffleKey: application-1, originFilePath: /tmp/Celeborn369677075541712354sort-suite, originFileLen: 2453073519
```
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#issuecomment-3223021708
## [Codecov](https://app.codecov.io/gh/apache/celeborn/pull/3451?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 63.99%. Comparing base ([`661a096`](https://app.codecov.io/gh/apache/celeborn/commit/661a096b778c2e53f6a3385363881cf0c7e37c78?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`3f6e70e`](https://app.codecov.io/gh/apache/celeborn/commit/3f6e70ec711de850728c1e20e1298e7944b91988?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 7 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #3451 +/- ##
==========================================
+ Coverage 63.70% 63.99% +0.30%
==========================================
Files 351 351
Lines 21522 21547 +25
Branches 1912 1913 +1
==========================================
+ Hits 13708 13787 +79
+ Misses 6813 6763 -50
+ Partials 1001 997 -4
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/celeborn/pull/3451?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2335508858
##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionFilesSorter.java:
##########
@@ -692,6 +695,7 @@ class FileSorter {
this.fileId = fileId;
this.shuffleKey = shuffleKey;
this.indexFilePath = Utils.getIndexFilePath(originFilePath);
+ this.sortTimeLogThreshold = PartitionFilesSorter.this.sortTimeLogThreshold;
Review Comment:
Thanks, Fixed.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2335201270
##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionFilesSorter.java:
##########
@@ -799,6 +804,16 @@ public void sort() {
sorting.remove(fileId);
}
}
+ long sortDuration = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - sortStartTime);
Review Comment:
Note: I was planning to suggest making `sortDuration` and `sortStartTime` conditioned on `sortTimeLogThreshold > 0` : but given the default value is always non zero, this does not help much !
##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionFilesSorter.java:
##########
@@ -692,6 +695,7 @@ class FileSorter {
this.fileId = fileId;
this.shuffleKey = shuffleKey;
this.indexFilePath = Utils.getIndexFilePath(originFilePath);
+ this.sortTimeLogThreshold = PartitionFilesSorter.this.sortTimeLogThreshold;
Review Comment:
nit: We dont need this local variable - can directly reference `PartitionFilesSorter.this.sortTimeLogThreshold` instead.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2313261379
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("220s")
Review Comment:
Changing the value to 30s makes no sense because the sort time is variable due to disk status and other conditions. The original parameter shows timed-out sort tasks and files, which can be helpful.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2335515305
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,14 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.6.2")
Review Comment:
Wait for 0.6.1 release.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2307742024
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
Review Comment:
Updated. Yes, we did encounter this problem, but it is difficult to locate. I am not sure if 30s will cause too many logs, but there are configuration items that users can adjust as needed.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2329102464
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("220s")
Review Comment:
cc @SteNicholas
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas commented on PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#issuecomment-3327997392
Thanks. Merged to main(v0.7.0).
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2335513421
##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionFilesSorter.java:
##########
@@ -799,6 +804,16 @@ public void sort() {
sorting.remove(fileId);
}
}
+ long sortDuration = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - sortStartTime);
Review Comment:
I think this makes sense, I changed it again.
We had previously encountered the problem of `nanoTime` performance degradation when clocksource is HPET in production environment.
TSC Clocksource Switching to HPET During High I/O Load
https://www.suse.com/support/kb/doc/?id=000021035
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2313278654
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("220s")
Review Comment:
```scala
.version("0.6.1")
.fallbackConf(WORKER_PARTITION_SORTER_SORT_TIMEOUT)
```
OR
```scala
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
```
Which one do you think is better?
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2318082669
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("220s")
Review Comment:
.version("0.6.1")
.fallbackConf(WORKER_PARTITION_SORTER_SORT_TIMEOUT)
I think we can set the default value to half of the `WORKER_PARTITION_SORTER_SORT_TIMEOUT`.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on code in PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#discussion_r2307579986
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("220s")
Review Comment:
maybe 30s?
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -3736,6 +3738,15 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("220s")
+ val WORKER_PARTITION_SORTER_SORT_TIME_LOG_THRESHOLD: ConfigEntry[Long] =
+ buildConf("celeborn.worker.sortPartition.sortTimeLogThreshold")
+ .categories("worker")
+ .doc("When sort time exceeds this threshold, log the file id and sort duration. " +
+ "Set to 0 to disable logging.")
+ .version("0.7.0")
Review Comment:
Maybe we can also pick this to 0.6.1, since this log is very useful for locating files that have been sorted for a long time.
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas closed pull request #3451: [CELEBORN-2131] Add sorting duration logs in FileSorter
URL: https://github.com/apache/celeborn/pull/3451
--
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
Re: [PR] [CELEBORN-2131] Add sorting duration logs in FileSorter [celeborn]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on PR #3451:
URL: https://github.com/apache/celeborn/pull/3451#issuecomment-3328333707
> Merged to main(v0.7.0)
The config version is 0.6.2. Shall we pick to branch-0.6?
--
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