Skip to content

Conversation

sambott
Copy link
Contributor

@sambott sambott commented May 1, 2018

Replays State topic to rebuild local state on start.

@sambott sambott requested a review from ah- May 1, 2018 14:04
assert keys == [b'a', b'b', b'a']
assert values == [b'\x0c\0\0\0', b'\x7b\0\0\0', b'']


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I missing something_ Where exactly does it replay into the actual store from the changelog?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChangeLoggingStateStore.initialize?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Hooking that up with stream task is another PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A StreamTask calles StateStore.initialize(context, root) as part of its init(). The if the StateStore is a ChangeLoggingStateStore then it will replay the changelog into it's inner_state_store. See change_logging_state_store.py:25

@sambott sambott requested a review from ikucan May 2, 2018 08:13
@sambott sambott requested a review from satlank June 1, 2018 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants