Cyrill commented on code in PR #5274:
URL: https://github.com/apache/ozone/pull/5274#discussion_r1322914742


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/TracingFilter.java:
##########
@@ -71,7 +71,7 @@ public void filter(ContainerRequestContext requestContext,
     // written the data to the destination
     OutputStream out = responseContext.getEntityStream();
     if (out != null) {
-      responseContext.setEntityStream(new FilterOutputStream(out) {
+      responseContext.setEntityStream(new PureWrapperOutputStream(out) {

Review Comment:
   Wouldn't it be enough to override one more method in `FilterOutputStream` 
instead?
   This way:
   
   ```
   @Override
   public void write(@NotNull byte[] b, int off, int len) throws IOException {
     out.write(b, off, len);
   }
   
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to