Skip to content

ARROW-8112: [FlightRPC][C++] make sure status codes round-trip through gRPC#6615

Closed
lidavidm wants to merge 3 commits into
apache:masterfrom
lidavidm:flight-missing-codes
Closed

ARROW-8112: [FlightRPC][C++] make sure status codes round-trip through gRPC#6615
lidavidm wants to merge 3 commits into
apache:masterfrom
lidavidm:flight-missing-codes

Conversation

@lidavidm

Copy link
Copy Markdown
Member

There are still unmapped status codes, but these are the ones that correspond closely to a gRPC one. (OutOfMemory, for instance, doesn't quite line up with RESOURCE_EXHAUSTED since the latter is intended for some application-level resource like a disk quota, not an internal server error.)

@github-actions

Copy link
Copy Markdown

@lidavidm

Copy link
Copy Markdown
Member Author

Python is failing and would be fixed by #6614

@lidavidm lidavidm requested a review from pitrou March 13, 2020 14:59
@lidavidm

Copy link
Copy Markdown
Member Author

@pitrou I implemented the headers idea you suggested.

Comment thread cpp/src/arrow/flight/internal.cc Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is this worth refactoring out into status.h?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

(this being the int<->statuscode mapping)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm... perhaps as a helper function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've made a helper function, but kept it internal, since there doesn't seem to be a need to serialize statuses outside of Flight.

@lidavidm lidavidm force-pushed the flight-missing-codes branch from 2dd7c89 to d86276c Compare March 13, 2020 16:54
@lidavidm

Copy link
Copy Markdown
Member Author

This is segfaulting in Python tests, taking a look...

@lidavidm lidavidm force-pushed the flight-missing-codes branch 2 times, most recently from f3fe0db to 2b643fd Compare March 14, 2020 02:59

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! This will be a useful improvement.

Comment thread cpp/src/arrow/flight/internal.cc Outdated
Comment thread cpp/src/arrow/flight/internal.cc Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm... perhaps as a helper function?

Comment thread cpp/src/arrow/flight/internal.cc Outdated
Comment thread cpp/src/arrow/flight/internal.cc Outdated
Comment thread cpp/src/arrow/flight/internal.cc Outdated
Comment thread cpp/src/arrow/flight/server.cc Outdated
@lidavidm lidavidm force-pushed the flight-missing-codes branch from 2b643fd to 2af6537 Compare March 16, 2020 13:08
@pitrou pitrou force-pushed the flight-missing-codes branch from 2af6537 to da2b346 Compare March 17, 2020 12:01

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1. Will merge if green.

@pitrou pitrou closed this in ec7fce5 Mar 17, 2020
@pitrou

pitrou commented Mar 17, 2020

Copy link
Copy Markdown
Member

Thank you @lidavidm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants