-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: Simplify Barrage Viewport Table Updates #6347
Conversation
flakiness (#9948)"
.../barrage/src/main/java/io/deephaven/extensions/barrage/chunk/DefaultChunkReadingFactory.java
Outdated
Show resolved
Hide resolved
extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReaderOptions.java
Outdated
Show resolved
Hide resolved
extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReaderOptions.java
Outdated
Show resolved
Hide resolved
...nsions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSubscriptionOptions.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Outdated
Show resolved
Hide resolved
java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java
Outdated
Show resolved
Hide resolved
java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Outdated
Show resolved
Hide resolved
|
||
prevKeyspaceViewportRows.clear(); | ||
prevKeyspaceViewportRows.insert(keyspaceViewportRows); | ||
prevKeyspaceViewportRows.resetTo(barrageMessage.rowsIncluded); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think getSubView needs to document that (1) it does not own the row sets passed in, and (2) when they can be mutated.
The keyspace viewports can be mutated as soon as the call returns.
The position space viewport must not be mutated until the message is sent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesnt look like we have a formal ticket for this?
#6053 would be a good one.
Also please add notes to commit message/description about barrage/arrow/flatbuffer vers bumps.
...nt-api/src/main/java/io/deephaven/web/client/api/subscription/TableViewportSubscription.java
Outdated
Show resolved
Hide resolved
server/test-utils/src/main/java/io/deephaven/server/test/FlightMessageRoundTripTest.java
Outdated
Show resolved
Hide resolved
java-client/flight-examples/src/main/java/io/deephaven/client/examples/DoExchange.java
Outdated
Show resolved
Hide resolved
.../barrage/src/main/java/io/deephaven/extensions/barrage/chunk/DefaultChunkReadingFactory.java
Show resolved
Hide resolved
server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java
Show resolved
Hide resolved
...r/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java
Show resolved
Hide resolved
server/src/test/java/io/deephaven/server/barrage/BarrageMessageRoundTripTest.java
Outdated
Show resolved
Hide resolved
...lient-api/src/main/java/io/deephaven/web/client/api/barrage/data/WebBarrageSubscription.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two remarks, neither blocking, so I approved.
In addition to the other remark, I'll follow up with bumping required java versions to the downstream modules of arrow 18, as it has a minimum of Java 11 now, and so do all of our libraries that depend on it, directly or indirectly.
@@ -545,6 +549,31 @@ public boolean includesAnyOf(Range range) { | |||
return range.getFirst() <= target.getLast() && range.getLast() >= target.getFirst(); | |||
} | |||
|
|||
public long find(long key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll follow up this PR with unit tests
...lient-api/src/main/java/io/deephaven/web/client/api/barrage/data/WebBarrageSubscription.java
Outdated
Show resolved
Hide resolved
Labels indicate documentation is required. Issues for documentation have been opened: Community: deephaven/deephaven-docs-community#362 |
Fixes #6039.
Fixes #6053.
The barrage viewport protocol has now changed:
viewport clients must infer shifts:
In this PR we'll bump the following dependencies: