Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't execute dropped streams/tables, but update metastore #532

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

dguy
Copy link
Contributor

@dguy dguy commented Dec 14, 2017

During startup when reading and executing the prior commands we need to update the metastore for tables/streams that are subsequently dropped so that dependent commands can also execute, i.e. if we have

create stream s1 as select ...
create stream s2 as select * from s1
terminate query 'csas_s1'
drop s1

when we restart we should still have s2 running
#531

Copy link

@bluemonk3y bluemonk3y left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

LGTM!

For my understanding, terminated queries would always behave correctly in this regard: they would be added to the metadata but not started.

Your patch basically also adds additional state to indicate that a statement has been eventually dropped. And then you give these eventually dropped statements the same treatment as the terminated queries, causing the behavior to be consistent. Correct?

@dguy
Copy link
Contributor Author

dguy commented Dec 15, 2017

@apurvam, yes that is correct.

@dguy dguy merged commit b616838 into confluentinc:master Dec 15, 2017
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