Current state: Under Discussion
Discussion thread: here TODO
JIRA:
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Describe the problems you are trying to solve.
We will be adding a new state to the KafkaStreams.State:
public enum State { CREATED(1, 4), // 0 REBALANCING(2, 4, 6), // 1 RESTORING(1, 3, 4, 6), // 2 <--- new state RUNNING(1, 3, 4, 6), // 3 PENDING_SHUTDOWN(5), // 4 NOT_RUNNING, // 5 PENDING_ERROR(7), // 6 ERROR; // 7} |
The allowed transitions to/from this new state are:
Thus, this new state effectively sits in between REBALANCING and RUNNING: Streams will always pass through RESTORING following a rebalance, and remain in that state until all state stores have been fully restored from their changelog.
Describe the new thing you want to do in appropriate detail. This may be fairly extensive and have large subsections of its own. Or it may be a few sentences. Use judgement based on the scope of the change.
If there are alternative ways of accomplishing the same thing, what were they? The purpose of this section is to motivate why the design is the way it is and not some other way.