You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Working In Process

Status

Current state[One of "Under Discussion", "Accepted", "Rejected"]

Discussion thread: here

JIRA Unable to render Jira issues macro, execution error.

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

As the moment the IQ is only thrown InvalidStateStoreException for all errors. That means the user cannot handle different types of errors. We should throw different exceptions for different types.

Proposed Changes

Add two new exception class for the IQ state store errors:

  • public class StateStoreMigratedException extends InvalidStateStoreException
  • public class StateStoreClosedException extends InvalidStateStoreException

StateStoreMigratedException used for state store not available and may have been migrated to another instance, the user needs re-discovering its location.

StateStoreClosedException used for state store is closed.(RocksDBStore, WrappedStateStore)

Compatibility, Deprecation, and Migration Plan

  • Because no classes will be removed, this change will be fully backward.

Rejected Alternatives

No


  • No labels