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 44F74200CBE for ; Thu, 22 Jun 2017 18:34:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 43749160BF8; Thu, 22 Jun 2017 16:34:19 +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 8444A160BD3 for ; Thu, 22 Jun 2017 18:34:18 +0200 (CEST) Received: (qmail 60759 invoked by uid 500); 22 Jun 2017 16:34:17 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 60740 invoked by uid 99); 22 Jun 2017 16:34:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 16:34:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2D8E51A0451 for ; Thu, 22 Jun 2017 16:34:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IxGt8ohCi80u for ; Thu, 22 Jun 2017 16:34:16 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 238FD61F1A for ; Thu, 22 Jun 2017 16:34:14 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E365CE0DDB for ; Thu, 22 Jun 2017 16:34:11 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D4D8C240C4 for ; Thu, 22 Jun 2017 16:34:08 +0000 (UTC) Date: Thu, 22 Jun 2017 16:34:08 +0000 (UTC) From: "Jeremy Hanna (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10981) Consider striping view locks by key and cfid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Jun 2017 16:34:19 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-10981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna updated CASSANDRA-10981: ------------------------------------- Component/s: Materialized Views > Consider striping view locks by key and cfid > -------------------------------------------- > > Key: CASSANDRA-10981 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10981 > Project: Cassandra > Issue Type: Improvement > Components: Coordination, Materialized Views > Reporter: Tyler Hobbs > Assignee: Tyler Hobbs > Priority: Minor > Fix For: 3.4 > > > We use a striped lock to protect updates to tables with materialized views, and the lock is currently striped by the partition key of the {{Mutation}}. This causes concurrent updates to separate tables with the same partition key to contend for the same lock, resulting in one or more of the mutations being rescheduled on the {{MUTATION}} threadpool (potentially becoming an asynchronous operation instead a synchronous operations, from the perspective of local internal modifications). > Since it's probably fairly common to use the same partition key across multiple tables, I suggest that we add the cfid of the affected table to the lock striping, and acquire one lock per affected table (with the same rescheduling-under-contention behavior). -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org