Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
waitinfuture committed Aug 3, 2023
1 parent 002abed commit 1a5fe63
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,7 @@ private[celeborn] class Master(
if (requestSlots.shouldReplicate) 2 else 1,
if (requestSlots.maxWorkers <= 0) slotsAssignMaxWorkers else requestSlots.maxWorkers),
availableWorkers.size())
availableWorkers =
if (availableWorkers.size() > numWorkers)
availableWorkers.subList(0, numWorkers)
else availableWorkers
availableWorkers = availableWorkers.subList(0, numWorkers)
// offer slots
val slots =
masterSource.sample(MasterSource.OFFER_SLOTS_TIME, s"offerSlots-${Random.nextInt()}") {
Expand Down

0 comments on commit 1a5fe63

Please sign in to comment.