Closed chaoqin-li1123 closed 10 months ago
Currently we don't make sure pulsar reader is closed in all scenarios, only PulsarClientException is handled.
Use task completion iterator to make sure pulsar reader is closed.
(Please pick either of the following options)
[x] 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:
Check the box below.
Need to update docs?
doc-required
no-need-doc
doc
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
(Please pick either of the following options)
[x] 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