Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCQi4-0002Hh-O7 for pgsql-jdbc@arkaria.postgresql.org; Sun, 21 May 2017 13:15:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dCQi4-0003UW-Aq for pgsql-jdbc@arkaria.postgresql.org; Sun, 21 May 2017 13:15:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dCQi3-0003UF-VX for pgsql-jdbc@postgresql.org; Sun, 21 May 2017 13:15:48 +0000 Received: from m69-169.mailgun.net ([166.78.69.169]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dCQi0-0002OF-Bh for pgsql-jdbc@postgresql.org; Sun, 21 May 2017 13:15:47 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1495372541; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=L/qTa8bpYETZqxqZmi0kQub7OaETiVH+Qo9eQVmHEXc=; b=GXclDyG8LtiqLUD6AluN7XsvDy33a4Aib0D13LXifCYzHsXQ14ag3kdO2l5gLeDb7knPUXlN Et7+HqZveBv/gliFTjCO+PEnxEZAyhBl8/fERGGztEtNavd09v1eZpaE+9KMW3xRF6TB2qpy g8DSaj1Zf4N+wQfNHoIci/B3kEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=github.com; s=mailo; q=dns; h=Sender: Date: From: Reply-To: To: Message-ID: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding; b=O8eJ9jaHDGJhoOrgr0X4VWuTG7Fs0eJs2YnP6m9VDRAKb0CrUulAw/LBlqDLWvhf5ureES d7YcOA3F434Nh3BqrJQW8hdETcpGja3QZojIAIngH2cpW5Cyb18es1u5jXxcmFp/gw3SvkAc GQVZ6UeJwT+hfZIDam4Q6LQxUIDX0= X-Mailgun-Sending-Ip: 166.78.69.169 X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd Received: from github.com (Unknown [192.30.252.41]) by mxa.mailgun.org with ESMTP id 592192fd.7fc628129d80-smtp-out-n02; Sun, 21 May 2017 13:15:41 -0000 (UTC) Date: Sun, 21 May 2017 06:15:40 -0700 From: Vladimir Gordiychuk Reply-To: Vladimir Gordiychuk To: pgsql-jdbc@postgresql.org Message-ID: <592192fc9f119_67033fd09869dc344238c@hookshot-fe5-cp1-prd.iad.github.net.mail> Subject: [pgjdbc/pgjdbc] 2d3e89: bug: floating logical replcation test (#829) Mime-Version: 1.0 X-Pg-Spam-Score: -0.2 (/) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 2d3e8972a0b34106a8b7426619cabf852c38ddaa https://github.com/pgjdbc/pgjdbc/commit/2d3e8972a0b34106a8b7426619cabf852c38ddaa Author: Vladimir Gordiychuk Date: 2017-05-21 (Sun, 21 May 2017) Changed paths: M pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationTest.java Log Message: ----------- bug: floating logical replcation test (#829) ``` ERROR: replication slot "pgjdbc_logical_replication_slot" is active for PID 19978 ``` After close replication slot, postgresql require some times to kill previous session before start new, that why need wait when previous session die before restart replication replication via replication slot. More correct way, it's use org.postgresql.replication.PGReplicationStream#close, in that case not necessary wait when previous session die, but current version postgresql still have a bug that not allow stop replication fast enough[1]. 1. http://www.postgresql.org/message-id/CAFgjRd3hdYOa33m69TbeOfNNer2BZbwa8FFjt2V5VFzTBvUU3w@mail.gmail.com -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc