pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sehrope Sarkuni <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 807ddb: test: Fix typo in assert message
Date: Wed, 17 Mar 2021 03:48:45 -0700
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6
      https://github.com/pgjdbc/pgjdbc/commit/807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6
  Author: Sehrope Sarkuni <sehrope@jackdb.com>
  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 <sehrope@jackdb.com>
  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 <sehrope@jackdb.com>
  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 <sehrope@jackdb.com>
  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 <sehrope@jackdb.com>
  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





Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2F00774d-5fce1b@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] 807ddb: test: Fix typo in assert message
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox