lidavidm commented on a change in pull request #10663:
URL: https://github.com/apache/arrow/pull/10663#discussion_r669633930
##########
File path: cpp/src/arrow/flight/serialization_internal.cc
##########
@@ -201,9 +193,7 @@ grpc::Status FlightDataSerialize(const FlightPayload& msg,
ByteBuffer* out,
// Write the descriptor if present
int32_t descriptor_size = 0;
if (msg.descriptor != nullptr) {
- if (msg.descriptor->size() > kInt32Max) {
- return ToGrpcStatus(Status::CapacityError("Descriptor size overflow (>=
2**31)"));
Review comment:
I'll try to get a repro up when I can and file a bug, good idea.
##########
File path: cpp/src/arrow/flight/serialization_internal.cc
##########
@@ -201,9 +193,7 @@ grpc::Status FlightDataSerialize(const FlightPayload& msg,
ByteBuffer* out,
// Write the descriptor if present
int32_t descriptor_size = 0;
if (msg.descriptor != nullptr) {
- if (msg.descriptor->size() > kInt32Max) {
- return ToGrpcStatus(Status::CapacityError("Descriptor size overflow (>=
2**31)"));
- }
+ DCHECK_LT(msg.descriptor->size(), kInt32Max);
Review comment:
Whoops, fixed (here and elsewhere), thanks.
--
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]