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/08/26 08:00:02 UTC

[GitHub] [pulsar] lhotari opened a new issue, #17292: [Bug] Broker shutdown could hang at ModularLoadManagerImpl.disableBroker / ResourceLock.release

lhotari opened a new issue, #17292:
URL: https://github.com/apache/pulsar/issues/17292

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   master b21f7288
   
   ### Minimal reproduce step
   
   Happens in PulsarFunctionTlsTest.tearDown in CI. [Example failure](https://github.com/apache/pulsar/runs/8026627215?check_suite_focus=true#step:11:77)
   
   ### What did you expect to see?
   
   Broker shutdown shouldn't get stuck.
   
   ### What did you see instead?
   
   Broker shutdown got stuck at ModularLoadManagerImpl.disableBroker / ResourceLock.release in tests.
   
   ```
   "main" #1 prio=5 os_prio=0 cpu=27971.85ms elapsed=3533.18s tid=0x00007f9d68026e70 nid=0xaca waiting on condition  [0x00007f9d6e471000]
      java.lang.Thread.State: WAITING (parking)
   	at jdk.internal.misc.Unsafe.park(java.base@17.0.4/Native Method)
   	- parking to wait for  <0x000010003a8208b0> (a java.util.concurrent.CompletableFuture$Signaller)
   	at java.util.concurrent.locks.LockSupport.park(java.base@17.0.4/LockSupport.java:211)
   	at java.util.concurrent.CompletableFuture$Signaller.block(java.base@17.0.4/CompletableFuture.java:1864)
   	at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@17.0.4/ForkJoinPool.java:3463)
   	at java.util.concurrent.ForkJoinPool.managedBlock(java.base@17.0.4/ForkJoinPool.java:3434)
   	at java.util.concurrent.CompletableFuture.waitingGet(java.base@17.0.4/CompletableFuture.java:1898)
   	at java.util.concurrent.CompletableFuture.join(java.base@17.0.4/CompletableFuture.java:2117)
   	at org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl.disableBroker(ModularLoadManagerImpl.java:624)
   	at org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerWrapper.disableBroker(ModularLoadManagerWrapper.java:48)
   	at org.apache.pulsar.broker.service.BrokerService.unloadNamespaceBundlesGracefully(BrokerService.java:900)
   	at org.apache.pulsar.broker.service.BrokerService.unloadNamespaceBundlesGracefully(BrokerService.java:891)
   	at org.apache.pulsar.broker.service.BrokerService.closeAsync(BrokerService.java:736)
   	at org.apache.pulsar.broker.PulsarService.closeAsync(PulsarService.java:459)
   	at org.apache.pulsar.broker.PulsarService.close(PulsarService.java:383)
   	at org.apache.pulsar.functions.worker.PulsarFunctionTlsTest.tearDown(PulsarFunctionTlsTest.java:189)
   	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@17.0.4/Native Method)
   	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@17.0.4/NativeMethodAccessorImpl.java:77)
   	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@17.0.4/DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(java.base@17.0.4/Method.java:568)
   	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
   	at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:61)
   	at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:366)
   	at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:320)
   	at org.testng.internal.TestInvoker.runConfigMethods(TestInvoker.java:701)
   	at org.testng.internal.TestInvoker.runAfterGroupsConfigurations(TestInvoker.java:677)
   	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:661)
   	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
   	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
   	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
   	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
   	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
   	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
   	at org.testng.TestRunner$$Lambda$175/0x0000000800d9ac08.accept(Unknown Source)
   	at java.util.ArrayList.forEach(java.base@17.0.4/ArrayList.java:1511)
   	at org.testng.TestRunner.privateRun(TestRunner.java:764)
   	at org.testng.TestRunner.run(TestRunner.java:585)
   	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
   	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
   	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
   	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
   	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
   	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
   	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
   	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
   	at org.testng.TestNG.runSuites(TestNG.java:1069)
   	at org.testng.TestNG.run(TestNG.java:1037)
   	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
   	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
   	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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.apache.org

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


[GitHub] [pulsar] lhotari closed issue #17292: [Bug] Broker shutdown could hang at ModularLoadManagerImpl.disableBroker / ResourceLock.release

Posted by GitBox <gi...@apache.org>.
lhotari closed issue #17292: [Bug] Broker shutdown could hang at ModularLoadManagerImpl.disableBroker / ResourceLock.release
URL: https://github.com/apache/pulsar/issues/17292


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


[GitHub] [pulsar] lhotari commented on issue #17292: [Bug] Broker shutdown could hang at ModularLoadManagerImpl.disableBroker / ResourceLock.release

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #17292:
URL: https://github.com/apache/pulsar/issues/17292#issuecomment-1228182330

   Duplicates #15643


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