You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/11/22 09:16:14 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #2241: [Enhancement] Method may fail to close stream and reliance on default encoding [ZipkinConfiguration]

Alonexc opened a new issue, #2241:
URL: https://github.com/apache/incubator-eventmesh/issues/2241

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   ![image](https://user-images.githubusercontent.com/91315508/203273095-d3f49f29-29ad-4b67-add4-7415e8e9e730.png)
   located at:
   org/apache/eventmesh/trace/zipkin/config/ZipkinConfiguration.java line 82
   analysis and explanation:
   1. The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.  This may result in a file descriptor leak.  It is generally a good idea to use a finally block to ensure that streams are closed.
   2. Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly.
   
   
   ### Describe the solution you'd like
   
   reference:
   ![image](https://user-images.githubusercontent.com/91315508/203273196-c76064df-bb15-4866-96de-53b74b885891.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] jonyangx closed issue #2241: [Enhancement] Method may fail to close stream and reliance on default encoding [ZipkinConfiguration]

Posted by GitBox <gi...@apache.org>.
jonyangx closed issue #2241: [Enhancement]  Method may fail to close stream and reliance on default encoding [ZipkinConfiguration]
URL: https://github.com/apache/incubator-eventmesh/issues/2241


-- 
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@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org