engimatic opened a new issue, #36043:
URL: https://github.com/apache/arrow/issues/36043
### Describe the usage question you have. Please include as many useful
details as possible.
`try (BufferAllocator allocator = new RootAllocator()) {
// Server
try (final CookbookProducer producer = new
CookbookProducer(allocator, location);
final FlightServer flightServer =
FlightServer.builder(allocator, location, producer).build()) {
try {
flightServer.start();
System.out.println("S1: Server (Location): Listening on
port " + flightServer.getPort());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}`
And I handle mysql resultset like this:
`ResultSet resultSet = statement.executeQuery();
ArrowVectorIterator iterator = JdbcToArrow.sqlToArrowVectorIterator(
resultSet, config)`
`public void handleArrowIterator(ArrowVectorIterator iterator,
BufferAllocator allocator) {
int index = 0;
while (iterator.hasNext() && !listener.isCancelled()) {
if (listener.isReady()) {
try (VectorSchemaRoot root = iterator.next()) {
index++;
doSomeThing();
}
}
}
listener.completed();
}`
But when I force an outage of the client,listener.isCancelled() and
listener.isReady() always false,The server is stuck in an endless loop.How to
reslove it?
### Component(s)
FlightRPC
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]