Skip to content

Commit 84a281f

Browse files
authored
[ISSUE-158][BUG] When revive meet reserve slot filed, will throw ArrayBoundOutOfIndex exception (#159)
* [ISSUE-158][BUG] When revive meet reserve slot filed, will throw ArrayBoundOutOfIndex exception * Update pom.xml
1 parent 146f724 commit 84a281f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/src/main/scala/com/aliyun/emr/rss/client/write/LifecycleManager.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,10 @@ class LifecycleManager(appId: String, val conf: RssConf) extends RpcEndpoint wit
897897
slavePartitionLocations.remove(partition)
898898
destroyResource.computeIfAbsent(workerInfoWithRpcRef, newMapFunc)._2.add(partition)
899899
}
900+
if (slots.containsKey(workerInfoWithRpcRef) && masterPartitionLocations.isEmpty &&
901+
slavePartitionLocations.isEmpty) {
902+
slots.remove(workerInfoWithRpcRef)
903+
}
900904
}
901905
})
902906
if (!destroyResource.isEmpty) {

0 commit comments

Comments
 (0)