New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got 500 while force delete namespace #13793
Comments
2022-02-06T18:54:54,618+0800 [main-EventThread] WARN org.apache.pulsar.broker.admin.impl.NamespacesBase - [null] Failed to remove namespace or managed-ledger for public/test
java.util.concurrent.CompletionException: org.apache.pulsar.metadata.api.MetadataStoreException: org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode = Directory not empty for /managed-ledgers/public/test/persistent
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:714) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:701) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990) ~[?:1.8.0_292]
at org.apache.pulsar.metadata.impl.ZKMetadataStore.handleDeleteResult(ZKMetadataStore.java:264) ~[pulsar-metadata.jar:2.10.0-SNAPSHOT]
at org.apache.pulsar.metadata.impl.ZKMetadataStore.lambda$batchOperation$6(ZKMetadataStore.java:176) ~[pulsar-metadata.jar:2.10.0-SNAPSHOT]
at org.apache.pulsar.metadata.impl.PulsarZooKeeperClient$3$1.processResult(PulsarZooKeeperClient.java:490) [pulsar-metadata.jar:2.10.0-SNAPSHOT]
at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:722) [zookeeper-3.6.3.jar:3.6.3]
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:563) [zookeeper-3.6.3.jar:3.6.3]
Caused by: org.apache.pulsar.metadata.api.MetadataStoreException: org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode = Directory not empty for /managed-ledgers/public/test/persistent
at org.apache.pulsar.metadata.impl.ZKMetadataStore.getException(ZKMetadataStore.java:428) ~[pulsar-metadata.jar:2.10.0-SNAPSHOT]
... 5 more
Caused by: org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode = Directory not empty for /managed-ledgers/public/test/persistent
at org.apache.zookeeper.KeeperException.create(KeeperException.java:132) ~[zookeeper-3.6.3.jar:3.6.3]
at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) ~[zookeeper-3.6.3.jar:3.6.3]
at org.apache.pulsar.metadata.impl.ZKMetadataStore.getException(ZKMetadataStore.java:418) ~[pulsar-metadata.jar:2.10.0-SNAPSHOT]
... 5 more
2022-02-06T18:54:54,636+0800 [main-EventThread] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [06/二月/2022:18:54:54 +0800] "DELETE /admin/v2/namespaces/public/test?force=true HTTP/1.1" 500 2191 "-" "Puls-Java-v2.10.0-SNAPSHOT" 465
2022-02-06T18:54:54,640+0800 [BookKeeperClientWorker-OrderedExecutor-11-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/test/persistent/__transaction_buffer_snapshot][__compaction] Successfully closed & deleted ledger 119 in cursor
2022-02-06T18:54:54,695+0800 [broker-client-shared-timer-44-1] INFO org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/test/__transaction_buffer_snapshot] [standalone-0-4] Reconnecting after timeout |
The issue had no activity for 30 days, mark with Stale label. |
This PR #13644 has fix the exception |
The cause is we use a future to wait the operation of |
@codelipenghui Has this issue been resolved in 2.9.2?I encountered the same problem with 2.9.2. |
Describe the bug
The server side logs:
To Reproduce
Steps to reproduce the behavior:
--force
optionTest code:
Expected behavior
Delete the namespace successfully.
Additional context
Error logs for deleting the namespace are at the end of the log file.
pulsar-broker-lipenghuideMacBook-Pro-2.local.log
pulsar-broker-lipenghuideMacBook-Pro-2.local.log
pulsar-broker-lipenghuideMacBook-Pro-2.local.log
The text was updated successfully, but these errors were encountered: