lhotari opened a new pull request, #22493:
URL: https://github.com/apache/pulsar/pull/22493

   ### Motivation
   
   - impacts ManagedLedgerBkTest.tearDown and 
ManagedLedgerFactoryChangeLedgerPathTest.tearDown
   
   ```
     Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
0.278 s <<< FAILURE! - in 
org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryChangeLedgerPathTest
     Error:  
org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryChangeLedgerPathTest.tearDown
  Time elapsed: 0.186 s  <<< FAILURE!
     java.lang.NullPointerException: Cannot invoke 
"java.util.concurrent.ExecutorService.shutdownNow()" because "this.executor" is 
null
        at 
org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:225)
   ```
   
   and 
   
   ```
     Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
0.573 s <<< FAILURE! - in org.apache.bookkeeper.mledger.impl.ManagedLedgerBkTest
     Error:  org.apache.bookkeeper.mledger.impl.ManagedLedgerBkTest.tearDown  
Time elapsed: 0.446 s  <<< FAILURE!
     java.lang.NullPointerException: Cannot invoke 
"java.util.concurrent.ExecutorService.shutdownNow()" because "this.executor" is 
null
        at 
org.apache.bookkeeper.test.BookKeeperClusterTestCase.tearDown(BookKeeperClusterTestCase.java:225)
   ```
   
   ### Modifications
   
   - add null check
   - add `alwaysRun=true` to Before* methods
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to