class OOMRetryState extends AnyRef
A small helper class that helps keep track of retry counts as we trigger synchronizes on a completely spilled store.
- Alphabetic
- By Inheritance
- OOMRetryState
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OOMRetryState()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getRetriesSoFar: Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
resetIfNeeded(retryCount: Int, storeSpillableSize: Long): Unit
We reset our counters if
storeSpillableSizeis non-zero (as we only track when all spillable buffers are removed from the store), orretryCountis less than or equal to what we had previously recorded inshouldTrySynchronizing.We reset our counters if
storeSpillableSizeis non-zero (as we only track when all spillable buffers are removed from the store), orretryCountis less than or equal to what we had previously recorded inshouldTrySynchronizing. We do this to detect that the new failures are for a separate allocation (we need to give this new attempt a new set of retries.)For example, if an allocation fails and we spill all eligible buffers,
retryCountLastSyncedis set to the lastretryCountsent to us by cuDF as we keep allowing retries from cuDF. If we succeed, cuDF resetsretryCount, and so the new count sent to us must be <= than what we saw last, so we can reset our tracking. -
def
shouldTrySynchronizing(retryCount: Int): Boolean
If we have synchronized less times than
maxFailedOOMRetrieswe allow this retry to proceed, and track theretryCountprovided by cuDF.If we have synchronized less times than
maxFailedOOMRetrieswe allow this retry to proceed, and track theretryCountprovided by cuDF. If we are above our counter, we reset our state. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()