Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update reflection.proto from v1alpha to v1 #6724

Open
thesamet opened this issue Feb 19, 2020 · 5 comments
Open

update reflection.proto from v1alpha to v1 #6724

thesamet opened this issue Feb 19, 2020 · 5 comments
Milestone

Comments

@thesamet
Copy link

What version of gRPC-Java are you using?

1.27.1

What is your environment?

SBT

What did you expect to see?

grpc-services contains deprecated v1alpha/reflection.proto which instructs to use v1/reflection.proto, however the file is not shipped with this jar. It is unclear if there's a maven artifact that contains it that should be used instead.

@thesamet thesamet added the bug label Feb 19, 2020
@ericgribkoff
Copy link
Contributor

There is no maven artifact that should be used instead. The proto was marked as "deprecated" in #4973, but AFAICT there has been no effort since then to move any of the tooling around v1alpha/reflection.proto to the "canonical" v1/reflection.proto. Reflection in C++, Java, or Go is all still using the v1alpha API, along with tooling like grpc_cli.

Neither the gRPC core repo (https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto) nor the gRPC Go repo (https://github.com/grpc/grpc-go/blob/master/reflection/grpc_reflection_v1alpha/reflection.proto) include the comment that the proto is "deprecated".

Is this causing you some kind of issue? It certainly looks like something we need to internally clean up, but I would be interested to hear if this has impacted end users.

@thesamet
Copy link
Author

The only problem it causes is deprecation warnings, which I can suppress until this is cleaned up.

@ericgribkoff ericgribkoff self-assigned this Feb 20, 2020
@ericgribkoff ericgribkoff added this to the Next milestone Feb 20, 2020
@priyendra
Copy link

"The only problem it causes is deprecation warnings, which I can supress ..."

Do you have a pointer on how deprecation warnings can be suppressed in Bazel?

@thesamet
Copy link
Author

thesamet commented Apr 30, 2020

Do you have a pointer on how deprecation warnings can be suppressed in Bazel?

I currently don't use bazel, the comment was referring to a Scala build in SBT (using silencer to silence deprecation warnings)

@lbroudoux
Copy link

Hi,

Is there any news regarding the support of reflection v1 in Java grpc-services? The latest versions of tools like grpcurl now support this version (sending request with grpc.reflection.v1.ServerReflection/ServerReflectionInfo method name) and make the ProtoReflectionService useless on our server implementation.

The file in grpc-go is now marked as deprecated even if the one in grpc-core is not. 🤔

kannanjgithub added a commit to kannanjgithub/grpc-java that referenced this issue May 22, 2024
Changes still in progress on the proto field mapping.
kannanjgithub added a commit to kannanjgithub/grpc-java that referenced this issue May 28, 2024
…rverServiceDefinition constructed from that of the v1 service but with the service and method names and proto descriptors modified.

Issue grpc#6724.

Squashed commit of the following:

commit f1f2da7
Author: Kannan J <[email protected]>
Date:   Tue May 28 10:24:32 2024 +0000

    Some nitty changes.

commit 34f81e5
Author: Kannan J <[email protected]>
Date:   Tue May 28 10:09:49 2024 +0000

    Create ProtoReflectionService for the v1alpha proto by producing a ServerServiceDefinition constructed from that of the v1 service but with the service and method names and proto descriptors modified.

commit e99a8da
Author: Kannan J <[email protected]>
Date:   Fri May 24 11:20:28 2024 +0000

    Create V1 alpha service wrapping underlying V1 service, by modifying the ServerServiceDefinition.

commit b2bb9e1
Author: Kannan J <[email protected]>
Date:   Fri May 24 07:14:42 2024 +0000

    Changes to allow unit testing.

commit a002bc2
Author: Kannan J <[email protected]>
Date:   Wed May 22 11:53:27 2024 +0000

    Issue grpc#6724 to create a V1 reflection service.
    Changes still in progress on the proto field mapping.
kannanjgithub added a commit that referenced this issue Jul 19, 2024
V1 version of the proto reflection service, as the v1.alpha service has been deprecated.

* Create V1 alpha service wrapping underlying V1 service, by modifying the ServerServiceDefinition.

* Create ProtoReflectionService for the v1alpha proto by producing a ServerServiceDefinition constructed from that of the v1 service but with the service and method names and proto descriptors modified.

Issue #6724.
larry-safran pushed a commit to larry-safran/grpc-java that referenced this issue Aug 13, 2024
V1 version of the proto reflection service, as the v1.alpha service has been deprecated.

* Create V1 alpha service wrapping underlying V1 service, by modifying the ServerServiceDefinition.

* Create ProtoReflectionService for the v1alpha proto by producing a ServerServiceDefinition constructed from that of the v1 service but with the service and method names and proto descriptors modified.

Issue grpc#6724.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants