...
Code Block | ||
---|---|---|
| ||
# Two category exceptions public class RetryableStateStoreException extends InvalidStateStoreException public class FatalStateStoreException extends InvalidStateStoreException # Retryable exceptions public class StreamThreadNotStartedException extends RetryableStateStoreException public class StreamThreadRebalancingException extends RetryableStateStoreException public class StateStoreMigratedException extends RetryableStateStoreException # Fatal exceptions public class StreamThreadNotRunningException extends FatalStateStoreException public class StateStoreNotAvailableException extends FatalStateStoreException # Internal exceptions public class StateStoreIsEmptyExceptionEmptyStateStoreException extends InvalidStateStoreException public class StateStoreClosedException extends InvalidStateStoreException |
- StateStoreClosedException: will be thrown when state store is not open. This is an internal exception and will be wrapped to in StreamThreadNotStartedException or StateStoreMigratedException or StateStoreNotAvailableException later StateStoreNotAvailableException later.
- StateStoreIsEmptyExceptionEmptyStateStoreException: will be thrown when state store cannot be found in all StateStoreProviders. This is an internal exception, and will be wrapped to in StreamThreadNotStartedException or StateStoreMigratedException or StateStoreNotAvailableException later StateStoreNotAvailableException later.
- StreamThreadNotRunningException: will be thrown when stream thread is not running and stream state is PENDING_SHUTDOWN /
NOT NOT_RUNNING / ERROR. The user cannot retry when this exception is thrown. - StreamThreadNotStartedException: will be thrown when stream thread is not running and stream state is CREATED, the user can retry until to RUNNING.
- StreamThreadRebalancingException: will be thrown when stream thread is not running and stream state is REBALANCING, the user just retry and wait until rebalance finished (RUNNING).
- StateStoreMigratedException: A wrapper for StateStoreClosedException / StateStoreIsEmptyExceptionEmptyStateStoreException. Will be thrown when stream thread is RUNNING / REBALANCING. The user need to rediscover the state store.
- StateStoreNotAvailableException: A wrapper for StateStoreClosedException / StateStoreIsEmptyExceptionEmptyStateStoreException. Will be thrown when stream thread is PENDING_SHUTDOWN / NOT_RUNNING / ERROR. The user cannot retry when this exception is thrown.
...