Skip to content

Commit 4759075

Browse files
committed
rename
1 parent cca1cb3 commit 4759075

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

client-spark/spark-2/src/main/java/org/apache/spark/shuffle/celeborn/SparkShuffleManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ private void initializeLifecycleManager(String appId) {
109109
lifecycleManager.registerShuffleTrackerCallback(
110110
shuffleId -> mapOutputTracker.unregisterAllMapOutput(shuffleId));
111111

112-
lifecycleManager.registerBroadcastGetReducerFileGroupResponse(
112+
lifecycleManager.registerBroadcastGetReducerFileGroupResponseCallback(
113113
(shuffleId, getReducerFileGroupResponse) ->
114114
SparkUtils.serializeGetReducerFileGroupResponse(
115115
shuffleId, getReducerFileGroupResponse));
116-
lifecycleManager.registerInvalidatedBroadcastGetReducerFileGroupResponse(
116+
lifecycleManager.registerInvalidatedBroadcastCallback(
117117
shuffleId -> SparkUtils.invalidateSerializedGetReducerFileGroupResponse(shuffleId));
118118
}
119119
}

client-spark/spark-3/src/main/java/org/apache/spark/shuffle/celeborn/SparkShuffleManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ private void initializeLifecycleManager(String appId) {
151151
lifecycleManager.registerShuffleTrackerCallback(
152152
shuffleId -> SparkUtils.unregisterAllMapOutput(mapOutputTracker, shuffleId));
153153

154-
lifecycleManager.registerBroadcastGetReducerFileGroupResponse(
154+
lifecycleManager.registerBroadcastGetReducerFileGroupResponseCallback(
155155
(shuffleId, getReducerFileGroupResponse) ->
156156
SparkUtils.serializeGetReducerFileGroupResponse(
157157
shuffleId, getReducerFileGroupResponse));
158-
lifecycleManager.registerInvalidatedBroadcastGetReducerFileGroupResponse(
158+
lifecycleManager.registerInvalidatedBroadcastCallback(
159159
shuffleId -> SparkUtils.invalidateSerializedGetReducerFileGroupResponse(shuffleId));
160160
}
161161
}

client/src/main/scala/org/apache/celeborn/client/LifecycleManager.scala

+8-8
Original file line numberDiff line numberDiff line change
@@ -1840,20 +1840,20 @@ class LifecycleManager(val appUniqueId: String, val conf: CelebornConf) extends
18401840
cancelShuffleCallback = Some(callback)
18411841
}
18421842

1843-
@volatile private var broadcastGetReducerFileGroupResponse
1843+
@volatile private var broadcastGetReducerFileGroupResponseCallback
18441844
: Option[java.util.function.BiFunction[Integer, GetReducerFileGroupResponse, Array[Byte]]] =
18451845
None
1846-
def registerBroadcastGetReducerFileGroupResponse(call: java.util.function.BiFunction[
1846+
def registerBroadcastGetReducerFileGroupResponseCallback(call: java.util.function.BiFunction[
18471847
Integer,
18481848
GetReducerFileGroupResponse,
18491849
Array[Byte]]): Unit = {
1850-
broadcastGetReducerFileGroupResponse = Some(call)
1850+
broadcastGetReducerFileGroupResponseCallback = Some(call)
18511851
}
18521852

1853-
@volatile private var invalidatedBroadcastGetReducerFileGroupResponse: Option[Consumer[Integer]] =
1853+
@volatile private var invalidatedBroadcastCallback: Option[Consumer[Integer]] =
18541854
None
1855-
def registerInvalidatedBroadcastGetReducerFileGroupResponse(call: Consumer[Integer]): Unit = {
1856-
invalidatedBroadcastGetReducerFileGroupResponse = Some(call)
1855+
def registerInvalidatedBroadcastCallback(call: Consumer[Integer]): Unit = {
1856+
invalidatedBroadcastCallback = Some(call)
18571857
}
18581858

18591859
def invalidateLatestMaxLocsCache(shuffleId: Int): Unit = {
@@ -1893,14 +1893,14 @@ class LifecycleManager(val appUniqueId: String, val conf: CelebornConf) extends
18931893
def broadcastGetReducerFileGroupResponse(
18941894
shuffleId: Int,
18951895
response: GetReducerFileGroupResponse): Option[Array[Byte]] = {
1896-
broadcastGetReducerFileGroupResponse match {
1896+
broadcastGetReducerFileGroupResponseCallback match {
18971897
case Some(c) => Option(c.apply(shuffleId, response))
18981898
case _ => None
18991899
}
19001900
}
19011901

19021902
private def invalidatedBroadcastGetReducerFileGroupResponse(shuffleId: Int): Unit = {
1903-
invalidatedBroadcastGetReducerFileGroupResponse match {
1903+
invalidatedBroadcastCallback match {
19041904
case Some(c) => c.accept(shuffleId)
19051905
case _ =>
19061906
}

0 commit comments

Comments
 (0)