Package org.apache.cassandra.db.tries
Class InMemoryTrie.SpaceExhaustedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.cassandra.db.tries.InMemoryTrie.SpaceExhaustedException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- InMemoryTrie<T>
public static class InMemoryTrie.SpaceExhaustedException extends java.lang.Exception
Because we use buffers and 32-bit pointers, the trie cannot grow over 2GB of size. This exception is thrown if a trie operation needs it to grow over that limit. To avoid this problem, users should queryInMemoryTrie.reachedAllocatedSizeThreshold()
from time to time. If the call returns true, they should switch to a new trie (e.g. by flushing a memtable) as soon as possible. The threshold is configurable, and is set by default to 10% under the 2GB limit to give ample time for the switch to happen.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpaceExhaustedException()
-