Ver Fonte

对butebyf进行回收的过程打日志

vinson há 5 anos atrás
pai
commit
1cc22eeb18

+ 2 - 0
src/main/java/com/tidecloud/dataacceptance/service/HexBinaryAcceptanceHandlerAdapter.java

@@ -33,9 +33,11 @@ public abstract class HexBinaryAcceptanceHandlerAdapter extends AcceptanceInboun
             // release每次只把引用次数减1,通过日志发现,这里是in对象最后一次被引用的地方
             // 可以推断出在handler方法中必然有把in的引用次数增加但是没有做释放的操作
             // 代码太多了,不好排查。这里先做一个兜底的操作,如果释放不成功,多次释放,直到成功为止
+            logger.info("the ref count is: {}", in.refCnt());
             boolean isReleaseSuccess = false;
             while (!isReleaseSuccess) {
                 isReleaseSuccess = in.release();
+                logger.info("is release success: {}", isReleaseSuccess);
             }
         }