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

feat: fail scalable push query if error is detected in subscribed persistent query #7996

Merged
merged 20 commits into from
Aug 17, 2021

Conversation

nateab
Copy link
Member

@nateab nateab commented Aug 12, 2021

Description

Listen for errors in the persistent query that a scalable push query is subscribed to and if one occurs, fail the scalable push query.

Testing done

Unit tests added, as well as manual testing to ensure that we see Persistent query has error on the CLI.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@nateab nateab requested a review from a team as a code owner August 12, 2021 21:41
Copy link
Member

@AlanConfluent AlanConfluent left a comment

Choose a reason for hiding this comment

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

Looking good. Just a couple comments

queryErrors.add(queryError);
LOG.error(
"Unhandled exception caught in streams thread {}. ({})",
Thread.currentThread().getName(),
errorType,
e
);
listener.onError(this, queryError);
Copy link
Member

Choose a reason for hiding this comment

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

Curious, why was it required to move this call?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was failing some tests in SecureIntegrationTest that called assertQueryFailsWithUserError. It seemed that the queryError was not being added and so the tests failed, but when i moved the listener to the end they passed

Copy link
Member

Choose a reason for hiding this comment

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

We looked into this offline and this line can be reverted.

queryErrors.add(queryError);
LOG.error(
"Unhandled exception caught in streams thread {}. ({})",
Thread.currentThread().getName(),
errorType,
e
);
listener.onError(this, queryError);
Copy link
Member

Choose a reason for hiding this comment

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

We looked into this offline and this line can be reverted.

@nateab nateab merged commit eed501c into confluentinc:master Aug 17, 2021
@nateab nateab deleted the rebalance_fail branch August 17, 2021 23:21
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