Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3394518D5D for ; Fri, 1 Jan 2016 01:51:18 +0000 (UTC) Received: (qmail 69846 invoked by uid 500); 1 Jan 2016 01:51:18 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 69801 invoked by uid 500); 1 Jan 2016 01:51:18 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 69790 invoked by uid 99); 1 Jan 2016 01:51:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jan 2016 01:51:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A7BAFE381F; Fri, 1 Jan 2016 01:51:17 +0000 (UTC) From: phrocker To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org Message-ID: Subject: [GitHub] accumulo pull request: ACCUMULO-3509: Allow cleanup state to be ke... Content-Type: text/plain Date: Fri, 1 Jan 2016 01:51:17 +0000 (UTC) GitHub user phrocker opened a pull request: https://github.com/apache/accumulo/pull/60 ACCUMULO-3509: Allow cleanup state to be kept to avoid blocking tserv… …er session sweep By enabling state ( true/false) from the cleanup method, the change will avoid blocking on a scan session being swept. if the session cleanup blocks because a ScanSession is still being read, we may block until the ScanBatch returns for that ScanSession. The change uses a simple semaphore ( purely because I like the word ) to attempt acquisition. If that fails, we return false from the cleanup and reintroduce that Session back into the queue to clean up. Added unit test that in the error condition will show the missing scan sessions ( which are missing due to the cleanup being blocked) You can merge this pull request into a Git repository by running: $ git pull https://github.com/phrocker/accumulo-1 master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/accumulo/pull/60.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #60 ---- commit bbd2257a001d654a87b433bb387ad9fce402dbb8 Author: phrocker Date: 2015-12-31T15:16:49Z ACCUMULO-3509: Allow cleanup state to be kept to avoid blocking tserver session sweep By enabling state ( true/false) from the cleanup method, the change will avoid blocking on a scan session being swept. if the session cleanup blocks because a ScanSession is still being read, we may block until the ScanBatch returns for that ScanSession. The change uses a simple semaphore ( purely because I like the word ) to attempt acquisition. If that fails, we return false from the cleanup and reintroduce that Session back into the queue to clean up. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---