File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
fluss-rpc/src/main/java/com/alibaba/fluss/rpc/netty/server Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2121import com .alibaba .fluss .rpc .protocol .RequestType ;
2222import com .alibaba .fluss .security .acl .FlussPrincipal ;
2323import com .alibaba .fluss .shaded .netty4 .io .netty .buffer .ByteBuf ;
24+ import com .alibaba .fluss .shaded .netty4 .io .netty .util .ReferenceCountUtil ;
25+
26+ import org .slf4j .Logger ;
27+ import org .slf4j .LoggerFactory ;
2428
2529import java .net .InetAddress ;
2630import java .util .concurrent .CompletableFuture ;
2933
3034/** Represents a request received from Fluss protocol channel. */
3135public final class FlussRequest implements RpcRequest {
36+ private static final Logger LOG = LoggerFactory .getLogger (FlussRequest .class );
3237
3338 private final short apiKey ;
3439 private final short apiVersion ;
@@ -101,7 +106,7 @@ public ApiMessage getMessage() {
101106
102107 public void releaseBuffer () {
103108 if (message .isLazilyParsed ()) {
104- buffer . release ( );
109+ ReferenceCountUtil . safeRelease ( buffer );
105110 }
106111 }
107112
You can’t perform that action at this time.
0 commit comments