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 58661200D09 for ; Tue, 12 Sep 2017 08:41:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 570D41609C8; Tue, 12 Sep 2017 06:41:05 +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 9FF751609C6 for ; Tue, 12 Sep 2017 08:41:04 +0200 (CEST) Received: (qmail 53281 invoked by uid 500); 12 Sep 2017 06:41:03 -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 53269 invoked by uid 99); 12 Sep 2017 06:41:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 06:41:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 07E0E18B647 for ; Tue, 12 Sep 2017 06:41:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id KhwQH_-oQoPl for ; Tue, 12 Sep 2017 06:41:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1C5C35F666 for ; Tue, 12 Sep 2017 06:41:01 +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 5BF42E0051 for ; Tue, 12 Sep 2017 06:41:00 +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 1677424143 for ; Tue, 12 Sep 2017 06:41:00 +0000 (UTC) Date: Tue, 12 Sep 2017 06:41:00 +0000 (UTC) From: "Jaydeepkumar Chovatia (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13862) Optimize Paxos prepare and propose stage for local requests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Sep 2017 06:41:05 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13862?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16162572#comment-16162572 ]=20 Jaydeepkumar Chovatia edited comment on CASSANDRA-13862 at 9/12/17 6:40 AM: ---------------------------------------------------------------------------= - Please find patch details here: ||Branch||uTest|| |[3.0 | https://github.com/apache/cassandra/compare/trunk...jaydeepkumar198= 4:13862-3.0]|[circleci |https://circleci.com/gh/jaydeepkumar1984/cassandra/= 14]| |[trunk|https://github.com/apache/cassandra/compare/trunk...jaydeepkumar198= 4:13862-trunk]|[circleci |https://circleci.com/gh/jaydeepkumar1984/cassandr= a/13]| was (Author: chovatia.jaydeep@gmail.com): Please find patch details here: ||Branch||uTest|| |[3.0 | https://github.com/apache/cassandra/compare/trunk...jaydeepkumar198= 4:13862-3.0]|[https://circleci.com/gh/jaydeepkumar1984/cassandra/14]| |[trunk|https://github.com/apache/cassandra/compare/trunk...jaydeepkumar198= 4:13862-trunk]|[https://circleci.com/gh/jaydeepkumar1984/cassandra/13]| > Optimize Paxos prepare and propose stage for local requests=20 > ------------------------------------------------------------ > > Key: CASSANDRA-13862 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1386= 2 > Project: Cassandra > Issue Type: Improvement > Components: Streaming and Messaging > Reporter: Jaydeepkumar Chovatia > Priority: Minor > Fix For: 3.0.15, 4.0 > > > Currently Paxos prepare and propose messages always go through entire Mes= sagingService stack in Cassandra even if request is to be served locally, w= e can enhance and make local requests severed w/o involving MessagingServic= e. Similar things are done at may [other places | https://github.com/apache= /cassandra/blob/cassandra-3.0/src/java/org/apache/cassandra/service/Storage= Proxy.java#L1244] in Cassandra which skips MessagingService stage for local= requests. > This is what it looks like currently if we have tracing on and run Cassan= dra light weight transaction. > Sending PAXOS_PREPARE message to /A.B.C.D [MessagingService-Outgoing-/A.B= .C.D] | 2017-09-11 21:55:18.971000 | A.B.C.D | 15045 > =E2=80=A6 = = REQUEST_RESPONSE message received from /A.B.C.D [MessagingService-In= coming-/A.B.C.D] | 2017-09-11 21:55:18.976000 | A.B.C.D | 20270 > =E2=80=A6 = = Processing response from /A.B.C.D [Sha= redPool-Worker-4] | 2017-09-11 21:55:18.976000 | A.B.C.D | 20372 > Same thing applies for {{Propose stage}} as well. -- 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