You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/21 18:43:09 UTC
[GitHub] [pulsar] guillaumepitel opened a new issue #7012: Null pointer exception when add ledger fails
guillaumepitel opened a new issue #7012:
URL: https://github.com/apache/pulsar/issues/7012
**Describe the bug**
Pulsar starts logging a lot of the following errors, then repeatedly fails to add ledger leading to problems in messages handling (the message flow speed goes down and start oscilating).
```
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: 17:41:44.735 [bookkeeper-ml-scheduler-OrderedScheduler-5-0] ERROR org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Failed to add entry for ledger 7516 in time-out 120 sec
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: 17:41:44.736 [BookKeeperClientWorker-OrderedExecutor-4-0] WARN org.apache.bookkeeper.mledger.impl.OpAddEntry - [xxx/yyy/persistent/zzz-89] The add op is terminal legacy callback for entry 7516-151887 adding.
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: 17:41:44.755 [bookkeeper-ml-workers-OrderedExecutor-3-0] ERROR org.apache.bookkeeper.common.util.SafeRunnable - Unexpected throwable caught
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: java.lang.NullPointerException: null
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at org.apache.bookkeeper.mledger.impl.OpAddEntry.lambda$handleAddFailure$0(OpAddEntry.java:260) ~[org.apache.pulsar-managed-ledger-2.5.1.jar:2.5.1]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at org.apache.bookkeeper.mledger.util.SafeRun$1.safeRun(SafeRun.java:32) ~[org.apache.pulsar-managed-ledger-2.5.1.jar:2.5.1]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) [org.apache.bookkeeper-bookkeeper-common-4.10.0.jar:4.10.0]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.45.Final.jar:4.1.45.Final]
May 21 17:41:44 pulsar-dev-1 pulsar[10115]: #011at java.lang.Thread.run(Thread.java:834) [?:?]
```
**To Reproduce**
Nothing particular seems to trigger the problem, except there is a timeout to ledger creation
It happened repeatedly since we switched to 2.5.1. We have also sligthly increased the number of topics and namespaces used.
**Expected behavior**
Normal handling of ledger long creation is expected
**Screenshots**
Prometheus monitoring
![image](https://user-images.githubusercontent.com/1507539/82593621-10ad7880-9ba3-11ea-839e-207b14d0dd69.png)
**Desktop (please complete the following information):**
- OS: linux
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] sijie commented on issue #7012: Null pointer exception when add ledger fails
Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7012:
URL: https://github.com/apache/pulsar/issues/7012#issuecomment-686925002
@guillaumepitel I fixed the NPE issue in 2.6.0. Please try 2.6.0+ release.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] sijie closed issue #7012: Null pointer exception when add ledger fails
Posted by GitBox <gi...@apache.org>.
sijie closed issue #7012:
URL: https://github.com/apache/pulsar/issues/7012
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org