dlmarion opened a new pull request, #6470:
URL: https://github.com/apache/accumulo/pull/6470

   Looking at the non-deterministic failures of SessionBlockVerifyIT I found a 
deadlock between the ClientContext.close and TabletLocator.getLocator methods 
when there are unclosed Scanners in the client.
   
   JStack found the deadlock at:
   
   ```
   Java stack information for the threads listed above:
   ===================================================
   "junit-timeout-thread-4":
        at 
org.apache.accumulo.core.clientImpl.TabletLocator.disable(TabletLocator.java:134)
        - waiting to lock <0x000000042dbf08e8> (a java.lang.Class for 
org.apache.accumulo.core.clientImpl.TabletLocator) at
        -  
org.apache.accumulo.core.clientImpl.TabletLocator$1.disable(TabletLocator.java:245)
 at
        -  
org.apache.accumulo.core.singletons.SingletonManager.disable(SingletonManager.java:106)
 at
        -  
org.apache.accumulo.core.singletons.SingletonManager$$Lambda/0x00007fbd94325f88.accept(Unknown
 Source) at
        -  java.util.ArrayList.forEach([email protected]/ArrayList.java:1596) at
        -  
org.apache.accumulo.core.singletons.SingletonManager.transition(SingletonManager.java:196)
 at
        -  
org.apache.accumulo.core.singletons.SingletonManager.releaseReservation(SingletonManager.java:145)
        - locked <0x000000042dcc4b68> (a java.lang.Class for 
org.apache.accumulo.core.singletons.SingletonManager) at
        -  
org.apache.accumulo.core.singletons.SingletonReservation.close(SingletonReservation.java:50)
 at
        -  
org.apache.accumulo.core.clientImpl.ClientContext.close(ClientContext.java:894)
        - locked <0x000000042d857668> (a 
org.apache.accumulo.core.clientImpl.ClientContext) at
        -  
org.apache.accumulo.test.functional.SessionBlockVerifyIT.run(SessionBlockVerifyIT.java:179)
   
   "pool-2-thread-5":
        at 
org.apache.accumulo.core.clientImpl.ClientContext.tableZooHelper(ClientContext.java:626)
        - waiting to lock <0x000000042d857668> (a 
org.apache.accumulo.core.clientImpl.ClientContext) at
        -  
org.apache.accumulo.core.clientImpl.ClientContext.getTableState(ClientContext.java:671)
 at
        -  
org.apache.accumulo.core.clientImpl.TabletLocator.getLocator(TabletLocator.java:148)
        - locked <0x000000042dbf08e8> (a java.lang.Class for 
org.apache.accumulo.core.clientImpl.TabletLocator) at
        -  
org.apache.accumulo.core.clientImpl.ThriftScanner.scan(ThriftScanner.java:518) 
at
        -  
org.apache.accumulo.core.clientImpl.ScannerIterator.readBatch(ScannerIterator.java:159)
        - locked <0x000000042d863fb8> (a 
org.apache.accumulo.core.clientImpl.ThriftScanner$ScanState) at
        -  
org.apache.accumulo.core.clientImpl.ScannerIterator.getNextBatch(ScannerIterator.java:177)
 at
        -  
org.apache.accumulo.core.clientImpl.ScannerIterator.hasNext(ScannerIterator.java:109)
 at
        -  
org.apache.accumulo.test.functional.SessionBlockVerifyIT.lambda$0(SessionBlockVerifyIT.java:122)
 at 
        - 
org.apache.accumulo.test.functional.SessionBlockVerifyIT$$Lambda/0x00007fbd943acba8.call(Unknown
 Source)
   ```


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