You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "gosonzhang (via GitHub)" <gi...@apache.org> on 2023/09/10 13:22:01 UTC

[GitHub] [inlong] gosonzhang opened a new issue, #8871: [Improve][TubeMQ] Use an error code in checkMessageAndStatus() to return the check result instead of throwing an exception

gosonzhang opened a new issue, #8871:
URL: https://github.com/apache/inlong/issues/8871

   ### Description
   
   In the SimpleMessageProducer.checkMessageAndStatus() function [1], when checking the message parameter content, if something is abnormal, an exception will be thrown. In actual use, if the specific error can be clearly informed through the error, the API call will be more convenient to use. For example, if the message packet is too long, the caller can clearly understand the cause of the error without parsing the thrown exception information.
   ![image](https://github.com/apache/inlong/assets/14038849/2bbcfa96-b461-48e6-8648-17e057f15f17)
   
   
   1. https://github.com/apache/inlong/blob/master/inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/producer/SimpleMessageProducer.java#L300
   
   ### InLong Component
   
   InLong TubeMQ
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org.apache.org

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


[GitHub] [inlong] gosonzhang closed issue #8871: [Improve][TubeMQ] Use an error code in checkMessageAndStatus() to return the check result instead of throwing an exception

Posted by "gosonzhang (via GitHub)" <gi...@apache.org>.
gosonzhang closed issue #8871: [Improve][TubeMQ] Use an error code in checkMessageAndStatus() to return the check result instead of throwing an exception
URL: https://github.com/apache/inlong/issues/8871


-- 
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: dev-unsubscribe@inlong.apache.org

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