Skip to content

Conversation

@chaoqin-li1123
Copy link
Contributor

@chaoqin-li1123 chaoqin-li1123 commented Jan 23, 2024

Motivation

Currently we don't make sure pulsar reader is closed in all scenarios, only PulsarClientException is handled.

Modifications

Use task completion iterator to make sure pulsar reader is closed.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

  • This change is a trivial rework / code cleanup without any test coverage.

  • This change is already covered by existing tests, such as:

  • This change added tests and can be verified as follows:

Documentation

Check the box below.

Need to update docs?

  • doc-required
  • no-need-doc
  • doc

@chaoqin-li1123 chaoqin-li1123 requested review from a team and nlu90 as code owners January 23, 2024 18:54
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Jan 23, 2024
@chaoqin-li1123 chaoqin-li1123 changed the title Close reader in both success and failure case Close pulsar reader in both success and failure case Jan 23, 2024
@nlu90 nlu90 merged commit 55af037 into streamnative:master Jan 26, 2024
nlu90 pushed a commit that referenced this pull request Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-need-doc This pr does not need any document

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants