You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/05/03 02:16:16 UTC

[GitHub] [incubator-shenyu] hutaishi opened a new issue, #3374: [grpc plugin Compatibility]

hutaishi opened a new issue, #3374:
URL: https://github.com/apache/incubator-shenyu/issues/3374

   ### Description
   
   ## GRPC test version 1.6.0
   
   ## Compatible issue
   
   ### 1. MethodDescriptor.Marshaller get defaultInstance field not compatible with low versions.
   <img width="1224" alt="图片" src="https://user-images.githubusercontent.com/12478263/166394186-72cc7fad-960e-4003-9151-bed89b772f1b.png">
   
   ### Compatibility recommendations
   ```java      
   if (requestMarshaller instanceof MethodDescriptor.PrototypeMarshaller) {
      MethodDescriptor.PrototypeMarshaller<?> prototypeMarshaller = (PrototypeMarshaller<?>) requestMarshaller;
      REQUEST_PARAMS_CLASS_MAP.put(fullMethodName, prototypeMarshaller.getMessagePrototype().getClass());
   }
   ```
   ---
   ### 2.MethodDescriptor get serviceName field not compatible with low versions.
   <img width="1206" alt="图片" src="https://user-images.githubusercontent.com/12478263/166395468-e1a1f594-3d53-45ca-b307-d7d17ffba497.png">
   
   ## Compatibility recommendations
   No exception is thrown if the field is empty, and the service name is set if the field is not empty.
   
   ---
   ### 3.The output json field is not standardized
   not standardized json output:
   <img width="542" alt="图片" src="https://user-images.githubusercontent.com/12478263/166394767-f4370025-89d7-45d6-9d34-7acb73f2e8b6.png">
   
   standardized json output:
   <img width="390" alt="图片" src="https://user-images.githubusercontent.com/12478263/166394816-87fb9f32-25e4-43da-9572-e8f999c91536.png">
   
   
   ### Improvements that can be considered
   json serialization of each element in the value at the gateway
   
   ## Document issue
   ### 1.The documentation does not specify the need to implement the GrpcServerBuilder interface
   
   
   ### Task List
   
   _No response_


-- 
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: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] midnight2104 commented on issue #3374: [grpc plugin Compatibility]

Posted by GitBox <gi...@apache.org>.
midnight2104 commented on issue #3374:
URL: https://github.com/apache/incubator-shenyu/issues/3374#issuecomment-1117193440

   Hi, @hutaishi , are you willing to fix these problems? Also, consider whether the Json service is necessary?


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] yu199195 closed issue #3374: [Task]

Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #3374: [Task] <GRPC plugin is not compatible with low versions(such as: version 1.6.0 ) and json and documentation issues>
URL: https://github.com/apache/incubator-shenyu/issues/3374


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] hutaishi commented on issue #3374: [grpc plugin Compatibility]

Posted by GitBox <gi...@apache.org>.
hutaishi commented on issue #3374:
URL: https://github.com/apache/incubator-shenyu/issues/3374#issuecomment-1117345405

   > Hi, @hutaishi , are you willing to fix these problems? Also, consider whether the Json service is necessary?
   
   Very happy to improve the plugin


-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org