Skip to content

Commit 26f2d87

Browse files
raulcdlidavidm
authored andcommitted
MINOR: [Java][Flight] Add context of descriptor on integration tests when not found
This PR adds minor logging info about the descriptor looked up when it can't be found. For example on this ticket failure [ARROW-16441](https://issues.apache.org/jira/browse/ARROW-16441) we should be able to get more info around the descriptor: ``` panic: rpc error: code = NotFound desc = Unknown descriptor. ``` Closes #13053 from raulcd/add-descriptor-info-to-not-found Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
1 parent 3c3e68c commit 26f2d87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/flight/flight-integration-tests/src/main/java/org/apache/arrow/flight/integration/tests/IntegrationProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void getStream(CallContext context, Ticket ticket, ServerStreamListener l
9797
public FlightInfo getFlightInfo(CallContext context, FlightDescriptor descriptor) {
9898
Dataset h = datasets.get(descriptor);
9999
if (h == null) {
100-
throw CallStatus.NOT_FOUND.withDescription("Unknown descriptor.").toRuntimeException();
100+
throw CallStatus.NOT_FOUND.withDescription("Unknown descriptor: " + descriptor).toRuntimeException();
101101
}
102102
return h.getFlightInfo(location);
103103
}

0 commit comments

Comments
 (0)