Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 5A18DF60C for ; Wed, 17 Apr 2013 13:51:18 +0000 (UTC) Received: (qmail 34499 invoked by uid 500); 17 Apr 2013 13:51:16 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 34418 invoked by uid 500); 17 Apr 2013 13:51:16 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 34336 invoked by uid 99); 17 Apr 2013 13:51:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 13:51:16 +0000 Date: Wed, 17 Apr 2013 13:51:16 +0000 (UTC) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-3573) Improve token based login concurrency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated JCR-3573: ---------------------------------- Status: Patch Available (was: Open) > Improve token based login concurrency > ------------------------------------- > > Key: JCR-3573 > URL: https://issues.apache.org/jira/browse/JCR-3573 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core > Reporter: Marcel Reutegger > Priority: Minor > Attachments: JCR-3573.patch > > > Currently TokenBasedAuthentication.createToken() is synchronized and therefore serializes creation of tokens repository wide. > Removing the synchronization shows test failures because the .tokens node is created concurrently by multiple sessions. Instead of serializing the calls, we could also use an optimistic approach. See attached patch. All tests pass. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira