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 batchReceiveAsync not completed exceptionally when closing Consumer #7661

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

315157973
Copy link
Contributor

Fixes #7580

Motivation

CompletableFuture<Messages> from Consumer.batchReceiveAsync() not completed exceptionnally when closing Consumer.

Modifications

pendingBatchReceives was not cleaned up when the connection was closed, so I added pendingBatchReceives cleanup.

Verifying this change

unit test:
org.apache.pulsar.client.api.SimpleProducerConsumerTest#testReceiveAsyncCompletedWhenClosing

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • 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

@wolfstudy wolfstudy merged commit 48156ad into apache:master Jul 28, 2020
wolfstudy pushed a commit that referenced this pull request Jul 29, 2020
…er (#7661)

### Motivation

CompletableFuture<Messages<T>> from Consumer.batchReceiveAsync() not completed exceptionnally when closing Consumer.

### Modifications

pendingBatchReceives was not cleaned up when the connection was closed, so I added pendingBatchReceives cleanup.

(cherry picked from commit 48156ad)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…er (apache#7661)

### Motivation

CompletableFuture<Messages<T>> from Consumer.batchReceiveAsync() not completed exceptionnally when closing Consumer.

### Modifications

pendingBatchReceives was not cleaned up when the connection was closed, so I added pendingBatchReceives cleanup.
@315157973 315157973 deleted the close-consumer branch September 3, 2020 15:52
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
…er (apache#7661)

### Motivation

CompletableFuture<Messages<T>> from Consumer.batchReceiveAsync() not completed exceptionnally when closing Consumer.

### Modifications

pendingBatchReceives was not cleaned up when the connection was closed, so I added pendingBatchReceives cleanup.
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Dec 19, 2020
…er (apache#7661)

### Motivation

CompletableFuture<Messages<T>> from Consumer.batchReceiveAsync() not completed exceptionnally when closing Consumer.

### Modifications

pendingBatchReceives was not cleaned up when the connection was closed, so I added pendingBatchReceives cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants