Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E858B200D14 for ; Mon, 18 Sep 2017 09:00:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E6E2A1609E0; Mon, 18 Sep 2017 07:00:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3A9BD1609DB for ; Mon, 18 Sep 2017 09:00:09 +0200 (CEST) Received: (qmail 17585 invoked by uid 500); 18 Sep 2017 07:00:08 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 17341 invoked by uid 99); 18 Sep 2017 07:00:08 -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; Mon, 18 Sep 2017 07:00:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DAE03F32C3; Mon, 18 Sep 2017 07:00:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: marcuse@apache.org To: commits@cassandra.apache.org Date: Mon, 18 Sep 2017 07:00:08 -0000 Message-Id: In-Reply-To: <36e233ee4442419e8c71d605f281c3be@git.apache.org> References: <36e233ee4442419e8c71d605f281c3be@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/6] cassandra git commit: Make isBuilt volatile in PartitionUpdate archived-at: Mon, 18 Sep 2017 07:00:10 -0000 Make isBuilt volatile in PartitionUpdate Patch by marcuse; reviewed by Aleksey Yeschenko for CASSANDRA-13619 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bb3b332c Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bb3b332c Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bb3b332c Branch: refs/heads/cassandra-3.11 Commit: bb3b332c42256609275b214b7fbeceeecb6a3f30 Parents: d79fc9a Author: Marcus Eriksson Authored: Thu Sep 14 09:16:17 2017 +0200 Committer: Marcus Eriksson Committed: Mon Sep 18 08:51:53 2017 +0200 ---------------------------------------------------------------------- CHANGES.txt | 1 + src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb3b332c/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 7afbfaa..84ef845 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 3.0.15 + * Make isBuilt volatile in PartitionUpdate (CASSANDRA-13619) * Prevent integer overflow of timestamps in CellTest and RowsTest (CASSANDRA-13866) * Fix counter application order in short read protection (CASSANDRA-12872) * Don't block RepairJob execution on validation futures (CASSANDRA-13797) http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb3b332c/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java b/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java index 7bd5345..93b3568 100644 --- a/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java +++ b/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java @@ -65,7 +65,7 @@ public class PartitionUpdate extends AbstractBTreePartition // happens when the update is read. Further writing is then rejected though a manual call // to allowNewUpdates() allow new writes. We could make that more implicit but only triggers // really requires that so we keep it simple for now). - private boolean isBuilt; + private volatile boolean isBuilt; private boolean canReOpen = true; private Holder holder; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org