Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A1BA112A6 for ; Sun, 8 Jun 2014 02:39:02 +0000 (UTC) Received: (qmail 40793 invoked by uid 500); 8 Jun 2014 02:39:02 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 40752 invoked by uid 500); 8 Jun 2014 02:39:02 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 40744 invoked by uid 99); 8 Jun 2014 02:39:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 02:39:02 +0000 Date: Sun, 8 Jun 2014 02:39:02 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2872) Lack of synchronization when accessing lastCompactID in Tablet#setLastCompactionID() 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/ACCUMULO-2872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021059#comment-14021059 ] Josh Elser commented on ACCUMULO-2872: -------------------------------------- It isn't a bug presently, because that method is only invoked in a synchronized block of the instance of Tablet. However, it would be good to ensure that the method is either restricted to only be invoked inside of Tablet and in a synchronized block, or the implementation itself is synchronized. > Lack of synchronization when accessing lastCompactID in Tablet#setLastCompactionID() > ------------------------------------------------------------------------------------ > > Key: ACCUMULO-2872 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2872 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.7.0 > Reporter: Ted Yu > Priority: Minor > > {code} > public void setLastCompactionID(Long compactionId) { > if (compactionId != null) > this.lastCompactID = compactionId; > } > {code} > Lock on Tablet.this should be held when assigning lastCompactID. -- This message was sent by Atlassian JIRA (v6.2#6252)