We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5102361 commit 1966d31Copy full SHA for 1966d31
common/scala/src/main/scala/org/apache/openwhisk/common/NestedSemaphore.scala
@@ -101,7 +101,7 @@ class NestedSemaphore[T](memoryPermits: Int) extends ForcibleSemaphore(memoryPer
101
super.release(memoryPermits)
102
} else {
103
//This map may be recreated (multiple times) due to cluster membership events, so don't assume the entry exists...
104
- actionConcurrentSlotsMap.get(actionid) match {
+ actionConcurrentSlotsMap.get(actionid).foreach { concurrentSlots =>
105
case Some(concurrentSlots) =>
106
val (memoryRelease, actionRelease) = concurrentSlots.release(1, true)
107
//concurrent slots
0 commit comments