Markliniubility opened a new pull request, #3302:
URL: https://github.com/apache/incubator-eventmesh/pull/3302
<!--
### Contribution Checklist
- Name the pull request in the form "[ISSUE #XXXX] Title of the pull
request",
where *XXXX* should be replaced by the actual issue number.
Skip *[ISSUE #XXXX]* if there is no associated github issue for this
pull request.
- Fill out the template below to describe the changes contributed by the
pull request.
That will give reviewers the context they need to do the review.
- Each pull request should address only one issue.
Please do not mix up code from multiple issues.
- Each commit in the pull request should have a meaningful commit message.
- Once all items of the checklist are addressed, remove the above text and
this checklist,
leaving only the filled out template below.
(The sections below can be removed for hotfixes of typos)
-->
<!--
(If this PR fixes a GitHub issue, please add `Fixes #<XXX>` or `Closes
#<XXX>`.)
-->
Fixes #<XXXX>.
### Motivation
Kafka connector sometimes will have two exceptions when polling.
1. Consumer polls when it is not subscribed to anything. It will raise an
exception and cause the thread to shutdown permanently, which is not what we
want.
2. RecordDeserializationException: Consumer failed to deserialize.
### Modifications
For the first problem, I added a check on the subscription of the consumer.
The second issue is a bit more tricky. It was a bug in initializing the
Kafka consumer. The added lines will fix the bug.
### Documentation
- Does this pull request introduce a new feature?
- No
- If yes, how is the feature documented? N/A
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]