Skip to content

Commit

Permalink
[REMOTE-SHUFFLE-66] Enhance shuffle removing logic (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiafu Zhang <jiafu.zhang@intel.com>
  • Loading branch information
jiafuzha authored Apr 26, 2023
1 parent 50b79bc commit 4b33318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shuffle-daos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
<dependency>
<groupId>io.daos</groupId>
<artifactId>daos-java</artifactId>
<version>2.2.1</version>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ class DaosShuffleManager(conf: SparkConf) extends ShuffleManager with Logging {
override def unregisterShuffle(shuffleId: Int): Boolean = {
if (SparkContext.DRIVER_IDENTIFIER.equals(SparkEnv.get.executorId) && shuffleIdSet.remove(shuffleId)) {
removeShuffle(shuffleId)
true
} else {
false
}
}

Expand Down

0 comments on commit 4b33318

Please sign in to comment.