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

MetadataCache: readModifyUpdate should return the new value in the future #10474

Merged
merged 1 commit into from
May 4, 2021

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented May 4, 2021

Motivation

The atomic read-modify-update method in the MetadataCache should return a CompletableFuture<T> with the newly applied value instead of CompletableFuture<Void>. This will allow to piggyback more async calls on the completion of the update.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label May 4, 2021
@merlimat merlimat added this to the 2.8.0 milestone May 4, 2021
@merlimat merlimat self-assigned this May 4, 2021
@eolivelli eolivelli merged commit 504c4f3 into apache:master May 4, 2021
@merlimat merlimat deleted the read-modify-update branch May 4, 2021 13:54
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants