sijie commented on issue #1703: IllegalReferenceCountException at closing 
EntryLogManagerForSingleEntryLog
URL: https://github.com/apache/bookkeeper/issues/1703#issuecomment-426878628
 
 
   We are seeing this pretty often in pulsar when I attempted to use the latest 
master in pulsar.
   
   
https://builds.apache.org/job/pulsar_precommit_java8/4180/testReport/junit/org.apache.bookkeeper.mledger.impl/ManagedLedgerBkTest/ledgerFencedByAutoReplication/
   
   ```
   01:23:25.886 [main:io.netty.util.internal.logging.Slf4JLogger@146] WARN  
io.netty.util.ReferenceCountUtil - Failed to release a message: 
PooledUnsafeDirectByteBuf(freed)
   io.netty.util.IllegalReferenceCountException: refCnt: 0, increment: 1
        at 
io.netty.buffer.AbstractReferenceCountedByteBuf.release0(AbstractReferenceCountedByteBuf.java:100)
 ~[netty-all-4.1.22.Final.jar:4.1.22.Final]
        at 
io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:84)
 ~[netty-all-4.1.22.Final.jar:4.1.22.Final]
        at io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:88) 
~[netty-all-4.1.22.Final.jar:4.1.22.Final]
        at 
io.netty.util.ReferenceCountUtil.safeRelease(ReferenceCountUtil.java:113) 
[netty-all-4.1.22.Final.jar:4.1.22.Final]
        at 
org.apache.bookkeeper.bookie.BufferedChannel.close(BufferedChannel.java:91) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at org.apache.bookkeeper.util.IOUtils.close(IOUtils.java:48) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.bookie.EntryLogManagerForSingleEntryLog.forceClose(EntryLogManagerForSingleEntryLog.java:221)
 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.bookie.EntryLogger.shutdown(EntryLogger.java:1087) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage.shutdown(SingleDirectoryDbLedgerStorage.java:272)
 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.shutdown(DbLedgerStorage.java:185)
 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at org.apache.bookkeeper.bookie.Bookie.shutdown(Bookie.java:1099) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at org.apache.bookkeeper.bookie.Bookie.shutdown(Bookie.java:1068) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.proto.BookieServer.shutdown(BookieServer.java:201) 
[bookkeeper-server-4.9.0-20181003-897c643-SNAPSHOT.jar:4.9.0-20181003-897c643-SNAPSHOT]
        at 
org.apache.bookkeeper.test.BookKeeperClusterTestCase.stopBKCluster(BookKeeperClusterTestCase.java:169)
 [test-classes/:?]
        at 
org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:113)
 [test-classes/:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_172]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_172]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_172]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to