You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zipkin.apache.org by GitBox <gi...@apache.org> on 2019/05/15 11:53:14 UTC

[GitHub] [incubator-zipkin] adriancole commented on a change in pull request #2595: Decode ByteBuffer directly where possible.

adriancole commented on a change in pull request #2595: Decode ByteBuffer directly where possible.
URL: https://github.com/apache/incubator-zipkin/pull/2595#discussion_r284216589
 
 

 ##########
 File path: zipkin-server/src/main/java/zipkin2/server/internal/ZipkinHttpCollector.java
 ##########
 @@ -139,7 +139,7 @@ HttpResponse validateAndStoreSpans(SpanBytesDecoder decoder, ServiceRequestConte
         } else {
           // Currently this will happen for gzip spans. Need to fix armeria's gzip decoder to allow
           // returning pooled buffers on request.
-          nioBuffer = ByteBuffer.wrap(content.array());
+          nioBuffer = ByteBuffer.wrap(content.array(), content.offset(), content.length());
 
 Review comment:
   good eye :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services