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

fix: idempotent terminate that can handle hung streams #4643

Merged

Conversation

rodesai
Copy link
Contributor

@rodesai rodesai commented Feb 26, 2020

Description

Fixes a couple issues with terminate:

  • don't throw if the query doesn't get into NOT_RUNNING state. This can
    happen when streams threads are stuck pending shutdown.
  • make terminate idempotent

@rodesai rodesai requested a review from a team as a code owner February 26, 2020 21:03
Copy link
Contributor

@vcrfxia vcrfxia left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @rodesai !

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
@rodesai rodesai force-pushed the dont-fail-terminate-on-pending-close branch from 91c9bcb to 4603b9c Compare February 26, 2020 21:53
@rodesai rodesai merged commit 76a95c1 into confluentinc:master Feb 27, 2020
agavra pushed a commit that referenced this pull request Feb 27, 2020
Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
colinhicks pushed a commit that referenced this pull request Feb 27, 2020
Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
colinhicks pushed a commit that referenced this pull request Feb 27, 2020
Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
agavra pushed a commit to agavra/ksql that referenced this pull request Feb 27, 2020
…4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
stevenpyzhang pushed a commit to stevenpyzhang/ksql that referenced this pull request Mar 4, 2020
…4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
stevenpyzhang pushed a commit to stevenpyzhang/ksql that referenced this pull request Mar 4, 2020
…4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
stevenpyzhang added a commit that referenced this pull request Mar 6, 2020
* fix: idempotent terminate that can handle hung streams (#4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent

* fix: don't cleanup topics on engine close (#4658)

Co-authored-by: Rohan <[email protected]>
Co-authored-by: Andy Coates <[email protected]>

Co-authored-by: Rohan <[email protected]>
Co-authored-by: Almog Gavra <[email protected]>
Co-authored-by: Andy Coates <[email protected]>
stevenpyzhang pushed a commit to stevenpyzhang/ksql that referenced this pull request Mar 18, 2020
…4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent
stevenpyzhang added a commit that referenced this pull request Mar 20, 2020
* fix: idempotent terminate that can handle hung streams (#4643)

Fixes a couple issues with terminate:
- don't throw if the query doesn't get into NOT_RUNNING state. This can
  happen when streams threads are stuck pending shutdown.
- make terminate idempotent

* fix: don't cleanup topics on engine close (#4658)

Co-authored-by: Rohan <[email protected]>
Co-authored-by: Andy Coates <[email protected]>

Co-authored-by: Rohan <[email protected]>
Co-authored-by: Almog Gavra <[email protected]>
Co-authored-by: Andy Coates <[email protected]>
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.

2 participants