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/06/03 11:48:48 UTC

[GitHub] [pulsar] lhotari commented on pull request #15638: [fix] Ensure resources are disposed in a sync way while closing ManagedLedgerFactory and CoordinationService

lhotari commented on PR #15638:
URL: https://github.com/apache/pulsar/pull/15638#issuecomment-1145882933

   @nicoloboschi Pleae rebase this PR.
   
   It looks like this could help with these issues which happen in PulsarFunctionTlsTest.tearDown:
   ```
   "main" #1 prio=5 os_prio=0 cpu=67703.73ms elapsed=3524.96s tid=0x00007f0b9c0243f0 nid=0xafb waiting on condition  [0x00007f0ba017c000]
      java.lang.Thread.State: WAITING (parking)
   	at jdk.internal.misc.Unsafe.park(java.base@17.0.3/Native Method)
   	- parking to wait for  <0x00000000ce100010> (a java.util.concurrent.CountDownLatch$Sync)
   	at java.util.concurrent.locks.LockSupport.park(java.base@17.0.3/LockSupport.java:211)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(java.base@17.0.3/AbstractQueuedSynchronizer.java:715)
   	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(java.base@17.0.3/AbstractQueuedSynchronizer.java:1047)
   	at java.util.concurrent.CountDownLatch.await(java.base@17.0.3/CountDownLatch.java:230)
   	at org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl.shutdown(ManagedLedgerFactoryImpl.java:635)
   	at org.apache.pulsar.broker.ManagedLedgerClientFactory.close(ManagedLedgerClientFactory.java:134)
   	at org.apache.pulsar.broker.PulsarService.closeAsync(PulsarService.java:460)
   	at org.apache.pulsar.broker.PulsarService.close(PulsarService.java:374)
   	at org.apache.pulsar.functions.worker.PulsarFunctionTlsTest.tearDown(PulsarFunctionTlsTest.java:182)
   ```
   
   This is the [4th most flaky issue currently](https://docs.google.com/spreadsheets/d/165FHpHjs5fHccSsmQM4beeg6brn-zfUjcrXf6xAu4yQ/edit#gid=1452390962).


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