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 1lMTjR-0007mM-Gy for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Mar 2021 10:48:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMTjQ-00028U-9Y for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Mar 2021 10:48:52 +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 1lMTjQ-00028N-1z for pgsql-jdbc@lists.postgresql.org; Wed, 17 Mar 2021 10:48:52 +0000 Received: from out-26.smtp.github.com ([192.30.252.209] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMTjL-0003JY-CQ for pgsql-jdbc@lists.postgresql.org; Wed, 17 Mar 2021 10:48:51 +0000 Received: from github.com (hubbernetes-node-7647ea9.ash1-iad.github.net [10.56.108.76]) by smtp.github.com (Postfix) with ESMTPA id 6FCDB5E0263 for ; Wed, 17 Mar 2021 03:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1615978125; bh=b06k+fq7xP6LuTqEp3aut5IGtnh77I5gV6FOigGXEAQ=; h=Date:From:To:Subject:From; b=flUkagKRfnpWGRwwTIZw6JsCL3AlWSsjHKYW87dZoZGX7vZF4wKWX3C+26HBGqur8 zX92HsfNjKf5PWsckxD57Yfa4cF2glJRL7FsXqx9kgvXbsWcezPlf9rxfb6tZ8X+7F /tnhMi4vJeCCXs/qXCjthlz47ERYnfdqjkgnkxH0= Date: Wed, 17 Mar 2021 03:48:45 -0700 From: Sehrope Sarkuni To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 807ddb: test: Fix typo in assert message Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6 https://github.com/pgjdbc/pgjdbc/commit/807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6 Author: Sehrope Sarkuni Date: 2021-03-17 (Wed, 17 Mar 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java Log Message: ----------- test: Fix typo in assert message Commit: 7a4ed1eaa07e55b4268cbbddd21e82610e7f0b7a https://github.com/pgjdbc/pgjdbc/commit/7a4ed1eaa07e55b4268cbbddd21e82610e7f0b7a Author: Sehrope Sarkuni Date: 2021-03-17 (Wed, 17 Mar 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java Log Message: ----------- test: Change TestUtil.getBackendPid(...) to use value in unwrapped PGConnection Change TestUtil.getBackendPid(...) to use the value in the unwrapped PGConnection rather than executing a query to determine the connections backedn process id. This has the advantage of being both faster and usable when the connection is not in a queryable state such as during a COPY operation. Commit: 37a63cb6e93afa3926353ed068adb3a35fe20d6f https://github.com/pgjdbc/pgjdbc/commit/37a63cb6e93afa3926353ed068adb3a35fe20d6f Author: Sehrope Sarkuni Date: 2021-03-17 (Wed, 17 Mar 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java Log Message: ----------- test: Have ReplicationConnectionTest use TestUtil.terminateBackend(...) Commit: 237c685c99cfc210201c342d770dfdd6132ea198 https://github.com/pgjdbc/pgjdbc/commit/237c685c99cfc210201c342d770dfdd6132ea198 Author: Sehrope Sarkuni Date: 2021-03-17 (Wed, 17 Mar 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java Log Message: ----------- test: Add helper methods to check and wait for backend process termination Commit: 5fce1bb8fb3c73147aab38b8f42d6ea9a4557b50 https://github.com/pgjdbc/pgjdbc/commit/5fce1bb8fb3c73147aab38b8f42d6ea9a4557b50 Author: Sehrope Sarkuni Date: 2021-03-17 (Wed, 17 Mar 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java Log Message: ----------- test: Refactor TestUtil.terminateBackend(...) to wait for backend process to exit Changes terminateBackend(...) method public signature to take the connection that is being terminated and use it's properties to create a new privileged connection to use for requesting process termination. If terminated, wait up to the default wait time for the backend process to actually exit before returning back to the caller. This way callers need not add their own looping logic to ensure the backend has actually been killed as pg_terminate_backend(...) only sends the termination signal, it does not actually wait for the process to terminate. Also moves the CopyTest termination call outside the try-catch so errors during the cancelation are not swallowed by the test itself. Compare: https://github.com/pgjdbc/pgjdbc/compare/00774d14b4c9...5fce1bb8fb3c