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

BarrageSession Subscription/Snapshot Methods now Return Future<Table> #4676

Merged
merged 16 commits into from
Oct 23, 2023

Conversation

nbauernfeind
Copy link
Member

@nbauernfeind nbauernfeind commented Oct 19, 2023

Fix #4675

This includes breaking changes to the barrage java-client API. The snapshot/subscription methods now return Future<Table> instead of BarrageTable and users are no longer required to blockUntilCompletion as this is handled by Future#get.

Subscribed tables can now be canceled only through Liveness destruction such as using an explicit LivenessScope or invoking ReferenceCounted#forceReferenceCountToZero().

@rcaudy
Copy link
Member

rcaudy commented Oct 20, 2023

Approved, but needs thorough testing before we merge.

@rcaudy rcaudy dismissed their stale review October 23, 2023 00:23

We found a bug

nbauernfeind and others added 2 commits October 23, 2023 14:39
rcaudy
rcaudy previously approved these changes Oct 23, 2023
Copy link
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two cosmetic complaints. No need to make further changes if tests pass.

@nbauernfeind nbauernfeind changed the title Fix BarrageSession#snapshot Use-Case; Do Not Make BarrageTable Refreshing BarrageSession Subscription/Snapshot Methods now Return Future<Table> Oct 23, 2023
@nbauernfeind nbauernfeind enabled auto-merge (squash) October 23, 2023 21:44
@nbauernfeind nbauernfeind merged commit 43c10f4 into deephaven:main Oct 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Barrage snapshot can return 0 rows to the client
2 participants