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 2022/02/07 06:56:56 UTC

[GitHub] [pulsar] liangyepianzhou commented on issue #13793: Got 500 while force delete namespace

liangyepianzhou commented on issue #13793:
URL: https://github.com/apache/pulsar/issues/13793#issuecomment-1031132664


   1. I checked the code according to the above error log and found that it may be repeated execution of `PersistentTopic::delete `. This error may be reported when this method is executed multiple times.
   2. According to the above reproduction, I tried to reproduce several times, but I didn't get the above exception, instead, I got another exception: 
   `org.apache.pulsar.metadata.api.MetadataStoreException`
   The error is as follows:
   ```java
   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
   ```
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org