This is an automated email from the ASF dual-hosted git repository.
zhouky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 5f7e1ce8e [CELEBORN-578][REFACTOR] Refine commit file's log to
indicate more clear about empty partitions (#1481)
5f7e1ce8e is described below
commit 5f7e1ce8e23f57eee76b148a312b8d0a90ecac75
Author: Angerszhuuuu <[email protected]>
AuthorDate: Mon May 8 18:21:46 2023 +0800
[CELEBORN-578][REFACTOR] Refine commit file's log to indicate more clear
about empty partitions (#1481)
---
.../service/deploy/worker/Controller.scala | 27 ++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git
a/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala
b/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala
index 83fb03f49..57cba3425 100644
---
a/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala
+++
b/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala
@@ -257,6 +257,7 @@ private[deploy] class Controller(
shuffleKey: String,
uniqueIds: jList[String],
committedIds: jSet[String],
+ emptyFileIds: jSet[String],
failedIds: jSet[String],
committedStorageInfos: ConcurrentHashMap[String, StorageInfo],
committedMapIdBitMap: ConcurrentHashMap[String, RoaringBitmap],
@@ -298,6 +299,8 @@ private[deploy] class Controller(
}
committedIds.add(uniqueId)
}
+ } else {
+ emptyFileIds.add(uniqueId)
}
} catch {
case e: IOException =>
@@ -407,6 +410,8 @@ private[deploy] class Controller(
// Use ConcurrentSet to avoid excessive lock contention.
val committedMasterIds = ConcurrentHashMap.newKeySet[String]()
val committedSlaveIds = ConcurrentHashMap.newKeySet[String]()
+ val emptyFileMasterIds = ConcurrentHashMap.newKeySet[String]()
+ val emptyFileSlaveIds = ConcurrentHashMap.newKeySet[String]()
val failedMasterIds = ConcurrentHashMap.newKeySet[String]()
val failedSlaveIds = ConcurrentHashMap.newKeySet[String]()
val committedMasterStorageInfos = JavaUtils.newConcurrentHashMap[String,
StorageInfo]()
@@ -419,6 +424,7 @@ private[deploy] class Controller(
shuffleKey,
masterIds,
committedMasterIds,
+ emptyFileMasterIds,
failedMasterIds,
committedMasterStorageInfos,
committedMapIdBitMap,
@@ -427,6 +433,7 @@ private[deploy] class Controller(
shuffleKey,
slaveIds,
committedSlaveIds,
+ emptyFileSlaveIds,
failedSlaveIds,
committedSlaveStorageInfos,
committedMapIdBitMap,
@@ -470,8 +477,14 @@ private[deploy] class Controller(
// reply
val response =
if (failedMasterIds.isEmpty && failedSlaveIds.isEmpty) {
- logInfo(s"CommitFiles for $shuffleKey success with
${committedMasterIds.size()}" +
- s" master partitions and ${committedSlaveIds.size()} slave
partitions!")
+ logInfo(
+ s"CommitFiles for $shuffleKey success with " +
+ s"${committedMasterIds.size()} committed master partitions, " +
+ s"${emptyFileMasterIds.size()} empty master partitions, " +
+ s"${failedMasterIds.size()} failed master partitions, " +
+ s"${committedMasterIds.size()} committed slave partitions, " +
+ s"${emptyFileSlaveIds.size()} empty slave partitions, " +
+ s"${failedSlaveIds.size()} failed slave partitions.")
CommitFilesResponse(
StatusCode.SUCCESS,
committedMasterIdList,
@@ -484,8 +497,14 @@ private[deploy] class Controller(
totalSize,
fileCount)
} else {
- logWarning(s"CommitFiles for $shuffleKey failed with
${failedMasterIds.size()} master" +
- s" partitions and ${failedSlaveIds.size()} slave partitions!")
+ logWarning(
+ s"CommitFiles for $shuffleKey failed with " +
+ s"${committedMasterIds.size()} committed master partitions, " +
+ s"${emptyFileMasterIds.size()} empty master partitions, " +
+ s"${failedMasterIds.size()} failed master partitions, " +
+ s"${committedMasterIds.size()} committed slave partitions, " +
+ s"${emptyFileSlaveIds.size()} empty slave partitions, " +
+ s"${failedSlaveIds.size()} failed slave partitions.")
CommitFilesResponse(
StatusCode.PARTIAL_SUCCESS,
committedMasterIdList,