rdhabalia commented on issue #635: Intermittent test failures in 
AdminApiTest.testIncrementPartitionsOfTopic
URL: 
https://github.com/apache/incubator-pulsar/issues/635#issuecomment-321716697
 
 
   Actually, even in last build, test is not failed due to assertion error but 
it failed with 500-error because broker gets shutdown during the test and topic 
is closed.
   
   ```
   persistent://prop-xyz/use/ns1/topic_+&*%{}() \/$@#^%
   
org.apache.pulsar.broker.service.BrokerServiceException$PersistenceException: 
org.apache.bookkeeper.mledger.ManagedLedgerException: ManagedLedger 
prop-xyz/use/ns1/persistent/topic_%2B%26*%25%7B%7D%28%29+%5C%2F%24%40%23%5E%25-partition-4
 has already been closed
        at 
org.apache.pulsar.broker.service.persistent.PersistentTopic$2.openCursorFailed(PersistentTopic.java:456)
        at 
org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.asyncOpenCursor(ManagedLedgerImpl.java:584)
        at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.getDurableSubscription(PersistentTopic.java:441)
        at 
org.apache.pulsar.broker.service.persistent.PersistentTopic.createSubscription(PersistentTopic.java:494)
        at 
org.apache.pulsar.broker.admin.PersistentTopics$3.lambda$2(PersistentTopics.java:1322)
        at 
java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
        at 
java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
        at 
java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
        at 
org.apache.pulsar.broker.admin.PersistentTopics$3.lambda$0(PersistentTopics.java:1316)
        at java.util.ArrayList.forEach(ArrayList.java:1249)
        at 
org.apache.pulsar.broker.admin.PersistentTopics$3.operationComplete(PersistentTopics
 
   ```
   
   `AdminApitTest` creates 2 pulsar instance and shutdown and 
`testIncrementPartitionsOfTopic` runs twice with different topic name. and 
according to log: broker shutdowns while test is running second time. 
   ```
   486298 [main] INFO org.apache.pulsar.broker.service.BrokerService - Shutting 
down Pulsar Broker service
   486298 [main] INFO org.apache.pulsar.zookeeper.ZooKeeperDataCache - 
[MockZookeeper] Received ZooKeeper watch event: WatchedEvent 
state:SyncConnected type:NodeDeleted path:/loadbalance/brokers/localhost:15413
   ```
   
   So, created #676 , and hopefully it should fix it.
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to