Re: Query cancel seems to be broken in master since Oct 17 - Mailing list pgsql-hackers

From Vladimir Gordiychuk
Subject Re: Query cancel seems to be broken in master since Oct 17
Date
Msg-id CAFgjRd1cTuZJ5OaPuq-wsNRdTpzq4QM8=5XkGKR6r-pv-JnE-w@mail.gmail.com
Whole thread Raw
In response to Re: Query cancel seems to be broken in master since Oct 17  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
>What platform does the postgres server run on?

Ubuntu
OS name: "linux", version: "3.19.0-66-generic", arch: "amd64", family: "unix"

2016-10-18 11:05 GMT+03:00 Magnus Hagander <magnus@hagander.net>:


On Tue, Oct 18, 2016 at 1:00 AM, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> wrote:
Hi,

In pgjdbc we have regular regression testing against "build from master" PostgreSQL, and recent master builds fail for "statement cancel" test.

The PostgreSQL as of Mon Oct 17 00:09:39 UTC 2016 was fine, then "statement cancel" started to fail.
The test executes "select pg_sleep(10)" and tries to cancel it. In recent master builds, cancel seems to be ignored, and the statement lasts for 10 seconds.

Exactly the same driver and test version works fine for 8.4, 9.1, 9.2, 9.3, 9.4, 9.5, and 9.6:

Any hints what could be the issue?
Was the breakage intentional?



That's certainly not intended to break things, but that was changed on Oct 17 and it relates to cancel keys.

What platform does the postgres server run on? Can can you check if query cancel works on libpq or if it's completely broken? 


--

pgsql-hackers by date:

Previous
From: Shay Rojansky
Date:
Subject: Re: Batches, error handling and transaction in the protocol
Next
From: Amit Kapila
Date:
Subject: Re: Hash Indexes