[
https://issues.apache.org/jira/browse/ARROW-10710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Lamb resolved ARROW-10710.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 8769
[https://github.com/apache/arrow/pull/8769]
> [Rust] Example flight server is broken after tokio upgrade (among other
> things)
> -------------------------------------------------------------------------------
>
> Key: ARROW-10710
> URL: https://issues.apache.org/jira/browse/ARROW-10710
> Project: Apache Arrow
> Issue Type: Bug
> Components: Rust
> Reporter: Andrew Lamb
> Assignee: Andrew Lamb
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Attachments: Screen Shot 2020-11-25 at 7.10.21 AM.png
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> As pointed out by [~rdettai] on
> https://github.com/apache/arrow/pull/8697#issuecomment-732936572
> Doing this:
> {code}
> cd rust/arrow-flight; cargo run --example server
> {code}
> results in the following compile error
> {code}
> error: The #[tokio::main] macro requires rt or rt-multi-thread.
> --> arrow-flight/examples/server.rs:121:1
> |
> 121 | #[tokio::main]
> | ^^^^^^^^^^^^^^
> |
> = note: this error originates in an attribute macro (in Nightly builds,
> run with -Z macro-backtrace for more info)
> warning: unused import: `tonic::transport::Server`
> --> arrow-flight/examples/server.rs:21:5
> |
> 21 | use tonic::transport::Server;
> | ^^^^^^^^^^^^^^^^^^^^^^^^
> |
> = note: `#[warn(unused_imports)]` on by default
> warning: unused import: `flight_service_server::FlightServiceServer`
> --> arrow-flight/examples/server.rs:25:43
> |
> 25 | flight_service_server::FlightService,
> flight_service_server::FlightServiceServer,
> |
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> error[E0601]: `main` function not found in crate `server`
> --> arrow-flight/examples/server.rs:18:1
> |
> 18 | / use std::pin::Pin;
> 19 | |
> 20 | | use futures::Stream;
> 21 | | use tonic::transport::Server;
> ... |
> 130 | | Ok(())
> 131 | | }
> | |_^ consider adding a `main` function to
> `arrow-flight/examples/server.rs`
> error: aborting due to 2 previous errors; 2 warnings emitted
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)