Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgWVj-0007WM-UC for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Jun 2020 16:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgWVe-0000wJ-3B for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Jun 2020 16:44:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgWVd-0000sG-Lt for pgsql-bugs@lists.postgresql.org; Wed, 03 Jun 2020 16:44:57 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jgWVS-00028o-O7 for pgsql-bugs@lists.postgresql.org; Wed, 03 Jun 2020 16:44:56 +0000 Received: by mail-qt1-x843.google.com with SMTP id w90so2583122qtd.8 for ; Wed, 03 Jun 2020 09:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jepsen-io.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=kBMN+4inoPcRY8YD7ScwNIt4/dhK91h06N1YugF9xwI=; b=sZoLE3CXLbBmcEIFEKuCEWpHbfFFtf1/oJ5VzAFEzQMQ84HOWbUVhlqHFODRATM20Y rRQLHkrff8YxmYmQZPdhVoLpiW2vpkdulEhTCTUeGxuKwvHMfOXVJN/QYqqCYorzMIBf GD+BQnDC92DL4yTAt9IFKoCvDX0HtG4B8cT1pusIspXBpe+cKogKoCDw7RKEWCGLGsyR CHsjfiLq1y80VBkUc6rdnMuwfaNhc5xuCWzbTbCijaknRiPRER8ntjEOhpQaHt5u6ymG 8oZXyLeKBJgPNBJMm2bJLftg1JUgxncCPNUrD3e8n/bqdLaZKPvDwUg3JbyvHtYRwvwF zLWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=kBMN+4inoPcRY8YD7ScwNIt4/dhK91h06N1YugF9xwI=; b=hjypsiD2pNv2vMqzXBVJE6FoB4cJyV1FU+pCj6imJQGQukdGnfmesOS32oE3WQU5hn MVLKVC9/h8fBb3FiwVvDqkGsFH6OO8XMtmZjNnMIX6prWAEF13JJn5Iab++oFEKB/vmb fB0tBvROsNa7eLB0GKTHF24P/ZedxdmbfpPg82VDYYNqc+11bM5v0uc4yjzWTUMM7koM gJgqEPXNS2wDh2Fs10wFG5NlnbH+Yb1Wwm8liCwUSd5S4dYNT1e/muvC4moz9poMxyhZ Dfxfp89m0Y1ye61GatHH9soA7vU9QT370pAIyVULaU0LntUP/4aJ7atksNTsD/u/0jBt xypg== X-Gm-Message-State: AOAM530A+SLCj68/L0Ij8KtbVdse1rFewkKz441cGQSnG1zMs+MTx3nh dkcDWjFJWcrLRFqJE0/rL7raObP5ETo= X-Google-Smtp-Source: ABdhPJwtU9vManSxmAJd75cMaXIlIbl1UhbB16/NWP3d5PkIWl0OFJ5IPlfmHG6FrLMAemBG3jgHcQ== X-Received: by 2002:ac8:7c94:: with SMTP id y20mr239284qtv.54.1591202684426; Wed, 03 Jun 2020 09:44:44 -0700 (PDT) Received: from ?IPv6:2600:2b00:9454:d600:7d18:1493:c0eb:151? ([2600:2b00:9454:d600:7d18:1493:c0eb:151]) by smtp.gmail.com with ESMTPSA id c16sm2046519qko.100.2020.06.03.09.44.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2020 09:44:43 -0700 (PDT) Subject: Re: Potential G2-item cycles under serializable isolation From: Kyle Kingsbury To: Peter Geoghegan Cc: PostgreSQL mailing lists References: <11bb3199-c685-1cec-63bb-f92848edbe10@jepsen.io> <54c6c503-b939-c4ce-0d54-4f998ac04168@jepsen.io> <3150072e-13b8-7655-211b-17898f894e45@jepsen.io> <4e63a8e6-41c9-2a62-b780-2b56005d2253@jepsen.io> Message-ID: <586286c6-b4dc-7257-efdd-ba1eb8f62dcc@jepsen.io> Date: Wed, 3 Jun 2020 12:44:42 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <4e63a8e6-41c9-2a62-b780-2b56005d2253@jepsen.io> Content-Type: multipart/alternative; boundary="------------2B980A3909E34BF0149DA907" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------2B980A3909E34BF0149DA907 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 6/3/20 10:20 AM, Kyle Kingsbury wrote: > On 6/2/20 7:17 PM, Peter Geoghegan wrote: >> It seems kind of inconvenient to run Jepsen -- I suppose I could >> use Docker or something like that, but I don't have experience >> with it. What do you think is the simplest workflow for somebody >> that just wants to recreate your result on a Debian system? > > I'll see about writing a version of the test that doesn't use any of > the automation, so you can point it at a local postgres instance. > Then all you'll need is lein and a jdk. OK, I think we're all set. With Jepsen 0ec25ec3, you should be able to run: cd stolon; lein run test-all -w append --max-writes-per-key 4 --concurrency 50 -r 500 --isolation serializable --time-limit 60 --nemesis none --existing-postgres --node localhost --no-ssh --postgres-user jepsen --postgres-password pw ... and it'll connect to an already-running instance of Postgres on localhost (or whatever you want to connect to) using the provided username and password. It expects a DB with the same name as the user. You'll need a JDK (1.8 or higher), and Leiningen (https://leiningen.org/), which should be pretty easy to install. :) > Could you test Postgres 9.5? It would be nice to determine if this > is a new issue, or a regression. I can also confirm that Postgres 9.5.22, 10.13, and 11.8 all exhibit the same G2-item anomalies as 12.3. It looks like this issue has been here a while! (Either that, or... my transactions are malformed?). Is there additional debugging data I can get you that'd be helpful? Or if you'd like, I can hop in an IRC or whatever kind of chat/video session you'd like to help you get these Jepsen tests running. --Kyle --------------2B980A3909E34BF0149DA907 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 6/3/20 10:20 AM, Kyle Kingsbury wrote:
> On 6/2/20 7:17 PM, Peter Geoghegan wrote: >> It seems kind of inconvenient to run Jepsen -- I suppose I could >> use Docker or something like that, but I don't have experience >> with it. What do you think is the simplest workflow for somebody >> that just wants to recreate your result on a Debian system? > > I'll see about writing a version of the test that doesn't use any of > the automation, so you can point it at a local postgres instance. > Then all you'll need is lein and a jdk.
OK, I think we're all set. With Jepsen 0ec25ec3, you should be able to run:

cd stolon;

lein run test-all -w append --max-writes-per-key 4 --concurrency 50 -r 500 --isolation serializable --time-limit 60 --nemesis none --existing-postgres --node localhost --no-ssh --postgres-user jepsen --postgres-password pw

... and it'll connect to an already-running instance of Postgres on localhost (or whatever you want to connect to) using the provided username and password. It expects a DB with the same name as the user. You'll need a JDK (1.8 or higher), and Leiningen (https://leiningen.org/), which should be pretty easy to install. :)

> Could you test Postgres 9.5? It would be nice to determine if this > is a new issue, or a regression.

I can also confirm that Postgres 9.5.22, 10.13, and 11.8 all exhibit the same G2-item anomalies as 12.3. It looks like this issue has been here a while! (Either that, or... my transactions are malformed?).

Is there additional debugging data I can get you that'd be helpful? Or if you'd like, I can hop in an IRC or whatever kind of chat/video session you'd like to help you get these Jepsen tests running.

--Kyle


--------------2B980A3909E34BF0149DA907--