lordcheng10 opened a new pull request, #15090:
URL: https://github.com/apache/pulsar/pull/15090

   ### Motivation
   fix npe in addComplete,the exception log of the broker is as follows:
   
   19:31:14.341 [BookKeeperClientWorker-OrderedExecutor-31-0] ERROR 
org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught
   java.lang.NullPointerException: null
           at 
org.apache.bookkeeper.mledger.impl.OpAddEntry.addComplete(OpAddEntry.java:153) 
~[org.apache.pulsar-managed-ledger-2.8.1.2.jar:2.8.1.2]
           at 
org.apache.bookkeeper.client.AsyncCallback$AddCallback.addCompleteWithLatency(AsyncCallback.java:92)
 ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.1.jar:4.14.2.1]
           at 
org.apache.bookkeeper.client.PendingAddOp.submitCallback(PendingAddOp.java:431) 
~[org.apache.bookkeeper-bookkeeper-server-4.14.2.1.jar:4.14.2.1]
           at 
org.apache.bookkeeper.client.LedgerHandle.errorOutPendingAdds(LedgerHandle.java:1799)
 ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.1.jar:4.14.2.1]
           at 
org.apache.bookkeeper.client.LedgerHandle$5.safeRun(LedgerHandle.java:574) 
~[org.apache.bookkeeper-bookkeeper-server-4.14.2.1.jar:4.14.2.1]
           at 
org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) 
[org.apache.bookkeeper-bookkeeper-common-4.14.2.1.jar:4.14.2.1]
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_144]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_144]
           at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 [io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
   
   
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `no-need-doc` 
   (Please explain why)
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-added`
   (Docs have been already added)


-- 
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]

Reply via email to