Skip to content

ARROW-4871: [Java/Flight] Handle large Flight messages#3898

Closed
ghost wants to merge 4 commits intomasterfrom
unknown repository
Closed

ARROW-4871: [Java/Flight] Handle large Flight messages#3898
ghost wants to merge 4 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 14, 2019

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3898 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3898      +/-   ##
==========================================
+ Coverage   87.85%   87.85%   +<.01%     
==========================================
  Files         726      726              
  Lines       89340    89337       -3     
  Branches     1252     1252              
==========================================
  Hits        78489    78489              
- Misses      10733    10734       +1     
+ Partials      118      114       -4
Impacted Files Coverage Δ
go/arrow/math/uint64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/float64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/memory/memory_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/int64_sse4_amd64.go 0% <0%> (-100%) ⬇️
js/src/ipc/metadata/json.ts 92.39% <0%> (-4.35%) ⬇️
js/src/ipc/metadata/message.ts 92.99% <0%> (-1.28%) ⬇️
js/src/schema.ts 88.77% <0%> (-1.03%) ⬇️
cpp/src/arrow/util/bpacking.h 99.81% <0%> (-0.01%) ⬇️
go/arrow/math/float64_amd64.go 33.33% <0%> (ø) ⬆️
go/arrow/math/int64_amd64.go 33.33% <0%> (ø) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5114be6...209b0a1. Read the comment docs.

@wesm
Copy link
Copy Markdown
Member

wesm commented Mar 14, 2019

IIUC we aren't running the Flight integration tests in Travis CI, do you want to try to enable that?

https://github.com/apache/arrow/blob/master/ci/travis_script_integration.sh

@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 15, 2019

I'll give it a spin. We need a way to mark integration tests as XFAIL then as Flight can't handle dictionaries yet.

public FlightClient(BufferAllocator incomingAllocator, Location location) {
final ManagedChannelBuilder<?> channelBuilder = ManagedChannelBuilder.forAddress(location.getHost(),
location.getPort()).maxTraceEvents(0).usePlaintext();
location.getPort()).maxTraceEvents(0).maxInboundMessageSize(Integer.MAX_VALUE).usePlaintext();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

move both the constants to a common place, would be better i guess..
also do we it would be useful for the user to be able to set a custom value (through a system property?)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'll move the constants.

It might be useful, but so far we've wanted not to leak gRPC details to the user. And if we were to expose them somehow, I'd rather we provide a way to directly build a client on top of a gRPC Channel instead of having to wrap every property that might need changing.

@wesm
Copy link
Copy Markdown
Member

wesm commented Mar 15, 2019

@lihalite let's do the integration testing in a different patch? Don't want to hold this up

@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 15, 2019

@wesm sure, no problem. I got pulled into some other stuff today, if you want to move the constants, I'll try to get a patch out for that tonight or tomorrow.

@ghost
Copy link
Copy Markdown
Author

ghost commented Mar 15, 2019

I've moved the constants. I'll follow up with the integration test changes later.

Copy link
Copy Markdown
Contributor

@praveenbingo praveenbingo left a comment

Choose a reason for hiding this comment

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

Test failure seems unrelated. LGTM.

@wesm wesm closed this in 5dc54da Mar 20, 2019
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
Equivalent to https://issues.apache.org/jira/browse/ARROW-4421, but for Java.

Author: David Li <David.M.Li@twosigma.com>

Closes apache#3898 from lihalite/java-large-flight and squashes the following commits:

a74e5c8 <David Li> Move Flight gRPC config values to constants
209b0a1 <David Li> Accept large messages in Java Flight client/server
2ce372b <David Li> Spawn new Flight server for each integration test
90f84b9 <David Li> Test large batch sizes in Flight integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants