Skip to content

Redesign cygrpc.Operation#13852

Merged
nathanielmanistaatgoogle merged 1 commit intogrpc:v1.8.xfrom
nathanielmanistaatgoogle:12531
Dec 21, 2017
Merged

Redesign cygrpc.Operation#13852
nathanielmanistaatgoogle merged 1 commit intogrpc:v1.8.xfrom
nathanielmanistaatgoogle:12531

Conversation

@nathanielmanistaatgoogle
Copy link
Copy Markdown
Contributor

Further progress toward issue 12531.

@mehrdada
Copy link
Copy Markdown
Contributor

mehrdada commented Dec 21, 2017

This PR is against v1.8.x, not master. Is that intentional?

(I'm asking since this sounds like a big change and I imagine 1.9 will be cut pretty soon too)

@nathanielmanistaatgoogle
Copy link
Copy Markdown
Contributor Author

Yes, it's intentional; I'd much rather have it upmerged than have to backport it. :-)

It's not as large as the numbers suggest; a lot of it is reconfiguration rather than new behavior. (Of course, ideally there's zero new non-test behavior in this commit...)

@mehrdada
Copy link
Copy Markdown
Contributor

I agree that upmerge is preferable to backport, but my suggestion was to leave it out of 1.8.x entirely, especially since 1.8 to 1.9 timespan will likely be shorter than usual—if there's no clear bug-fix benefit to 1.8.x users, there's always a risk of some destabilization in a point release, but it's ultimately your call.

@nathanielmanistaatgoogle
Copy link
Copy Markdown
Contributor Author

I'd like it on v1.8.x... I suppose because I'm still thinking about doing a point release once issue 12531 is entirely resolved (or more probably resolved-all-but-for-the-API-change).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Default signedness of char type is implementation-defined in C (I'm assuming Cython is the same). Please make unsignedness explicit i.e. ctypedef unsigned char uint8_t (unless Cython disallows it for some reason?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done; thanks for the catch.

It is now a family of classes conforming to an interface rather than a
single class no single instance of which makes use of all behavior
scoped to the class.

It also now only uses gRPC Core memory for the time of a single batch
rather than for the entire lifetime of the instance.
@mehrdada
Copy link
Copy Markdown
Contributor

mehrdada commented Dec 21, 2017

(Reminder for adding the appropriate entry to pony's saddlebag that might be necessary for the new cython file when upmerged to master)

@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit 57a7040 into grpc:v1.8.x Dec 21, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants