Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Proposed Changes

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

  • org.apache.kafka.streams.errors.StateStoreMigratedException
  • org.apache.kafka.streams.errors.StateStoreClosedException
StateStoreMigratedException used in the QueryableStoreProvider, StreamThreadStateStoreProvider and WrappingStoreProvider. The user can catch the exception and just wait until the store recreation finished.

 

 

 

Compatibility, Deprecation, and Migration Plan

...